Skip to content

Commit 0b05ade

Browse files
committed
Fixed csproj (hopefully)
1 parent 0b4f0e6 commit 0b05ade

File tree

1 file changed

+18
-32
lines changed

1 file changed

+18
-32
lines changed

WriterSharp.csproj

Lines changed: 18 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<!-- Generic properties -->
33
<PropertyGroup>
44
<OutputType>WinExe</OutputType>
5-
<InformationalVersion>1.0.0</InformationalVersion>
65
<TargetFramework>net8.0</TargetFramework>
76
<Nullable>enable</Nullable>
87
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
@@ -14,7 +13,7 @@
1413
<Optimize>true</Optimize>
1514

1615
<Description>The text editor... now in C#. WriterSharp is a simple text editor, yet one you can't miss out on!</Description>
17-
<FileVersion>1.0.0.0</FileVersion>
16+
<FileVersion>1.0.1.0</FileVersion>
1817
<InformationalVersion>1.0.0-alpha1</InformationalVersion>
1918

2019
<!-- UNCOMMENT FOR UNSTABLE RELEASES -->
@@ -32,41 +31,31 @@
3231
<!-- this setting gets overwrited if in debug mode -->
3332
<RuntimeIdentifiers>win-x64;linux-x64;osx-x64;win-x86</RuntimeIdentifiers>
3433
<Platforms>AnyCPU;x64;x86</Platforms>
35-
36-
<DefineConstants>WINDOWS;LINUX;DARWIN;X86_64;X86</DefineConstants>
37-
<!-- these constants will be overwritten afterwards -->
38-
</PropertyGroup>
39-
40-
<!-- OS and Platform constants -->
41-
<PropertyGroup>
34+
<DefineConstants>WINDOWS;LINUX;DARWIN;X86;X64</DefineConstants>
4235
<DefineConstants>UNIVERSAL</DefineConstants>
36+
</PropertyGroup>
4337

38+
<PropertyGroup Condition="'$(RuntimeIdentifier)' == 'win-x64'">
4439
<!-- Windows (64 bit) -->
45-
<DefineConstants Condition="'$(RuntimeIdentifier)' == 'win-x64'">
46-
WINDOWS;X86_64
47-
</DefineConstants>
48-
<ApplicationIcon Condition="'$(RuntimeIdentifier)' == 'win-x64'">
49-
Assets\AppIcon.ico
50-
</ApplicationIcon>
51-
40+
<DefineConstants>WINDOWS;X64</DefineConstants>
41+
<ApplicationIcon>Assets\AppIcon.ico</ApplicationIcon>
42+
</PropertyGroup>
43+
44+
<PropertyGroup Condition="'$(RuntimeIdentifier)' == 'win-x86'">
5245
<!-- Windows (32 bit) -->
5346
<!-- It ain't like this one will be supported for much longer but whatever... -->
54-
<DefineConstants Condition="'$(RuntimeIdentifier)' == 'win-x86'">
55-
WINDOWS;X86
56-
</DefineConstants>
57-
<ApplicationIcon Condition="'$(RuntimeIdentifier)' == 'win-x86'">
58-
Assets\AppIcon.ico
59-
</ApplicationIcon>
47+
<DefineConstants>DARWIN;X86</DefineConstants>
48+
<ApplicationIcon>Assets\AppIcon.ico</ApplicationIcon>
49+
</PropertyGroup>
6050

51+
<PropertyGroup Condition="'$(RuntimeIdentifier)' == 'linux-x64'">
6152
<!-- Linux -->
62-
<DefineConstants Condition="'$(RuntimeIdentifier)' == 'linux-x64'">
63-
LINUX;X86_64
64-
</DefineConstants>
65-
53+
<DefineConstants>LINUX;X64</DefineConstants>
54+
</PropertyGroup>
55+
56+
<PropertyGroup Condition="'$(RuntimeIdentifier)' == 'osx-x64'">
6657
<!-- MacOS (64 bit) -->
67-
<DefineConstants Condition="'$(RuntimeIdentifier)' == 'osx-x64'">
68-
DARWIN;X86_64
69-
</DefineConstants>
58+
<DefineConstants>DARWIN;X64</DefineConstants>
7059
</PropertyGroup>
7160

7261
<!-- Release Mode -->
@@ -112,8 +101,5 @@
112101
<!-- My stuff -->
113102
<ItemGroup>
114103
<AvaloniaResource Include="Assets\**" />
115-
116-
<!-- Asset Folder -->
117-
<None Include="Assets\**" Pack="true" CopyToOutputDirectory="PreserveNewest" />
118104
</ItemGroup>
119105
</Project>

0 commit comments

Comments
 (0)