Skip to content

Commit

Permalink
Merge pull request #142 from XanatosX/feature/123_create-designer-fil…
Browse files Browse the repository at this point in the history
…es-without-visual-studio

[Feature] Build *.Designer.cs files without Visual Studio
  • Loading branch information
XanatosX authored Apr 22, 2024
2 parents b6781b9 + 1c9eec6 commit fc6e5be
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1,144 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -458,4 +458,6 @@ $RECYCLE.BIN/

## Custom
### Packages
nupkg/*
nupkg/*

**/*.Designer.cs
26 changes: 26 additions & 0 deletions src/ModularToolManager/ModularToolManager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<TargetFramework>net7.0</TargetFramework>
<Nullable>enable</Nullable>
<ApplicationIcon>Assets\application-logo.ico</ApplicationIcon>
<CoreCompileDependsOn>PrepareResources;$(CompileDependsOn)</CoreCompileDependsOn>
</PropertyGroup>
<ItemGroup>
<AvaloniaResource Include="Assets\**" />
Expand All @@ -15,6 +16,31 @@
<None Remove="Resources\hotkeys.json" />
<None Remove="Resources\LICENSE" />
</ItemGroup>

<ItemGroup>
<EmbeddedResource Update="Properties\Resources.resx">
<Generator>MSBuild:Compile</Generator>
<PublicClass>true</PublicClass>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<StronglyTypedFileName>$(IntermediateOutputPath)\Resources.Designer.cs</StronglyTypedFileName>
<StronglyTypedLanguage>CSharp</StronglyTypedLanguage>
<StronglyTypedNamespace>ModularToolManager.Properties</StronglyTypedNamespace>
<StronglyTypedClassName>Resources</StronglyTypedClassName>
</EmbeddedResource>
</ItemGroup>

<ItemGroup>
<EmbeddedResource Update="Properties\Properties.resx">
<Generator>MSBuild:Compile</Generator>
<PublicClass>true</PublicClass>
<LastGenOutput>Properties.Designer.cs</LastGenOutput>
<StronglyTypedFileName>$(IntermediateOutputPath)\Properties.Designer.cs</StronglyTypedFileName>
<StronglyTypedLanguage>CSharp</StronglyTypedLanguage>
<StronglyTypedNamespace>ModularToolManager.Properties</StronglyTypedNamespace>
<StronglyTypedClassName>Properties</StronglyTypedClassName>
</EmbeddedResource>
</ItemGroup>

<ItemGroup>
<Content Include="Assets\application-logo.ico" />
<Content Include="Assets\built-with-avalonia.png" />
Expand Down
198 changes: 0 additions & 198 deletions src/ModularToolManager/Properties/Properties.Designer.cs

This file was deleted.

Loading

0 comments on commit fc6e5be

Please sign in to comment.