Skip to content

Commit 3f3fa6d

Browse files
authored
Merge pull request #7 from jeppevinkel/master
Update csproject for single file builds
2 parents dd288cb + c62ee60 commit 3f3fa6d

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

OpenVRStartup/OpenVRStartup.csproj

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net8.0</TargetFramework>
4-
<OutputType>Exe</OutputType>
3+
<TargetFramework>net8.0-windows</TargetFramework>
4+
<OutputType>WinExe</OutputType>
55
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
6+
<RuntimeIdentifiers>win-x64</RuntimeIdentifiers>
7+
<PlatformTarget>x64</PlatformTarget>
68
<Nullable>enable</Nullable>
79
</PropertyGroup>
810
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
@@ -13,6 +15,13 @@
1315
<OutputPath>bin\x64\Release\</OutputPath>
1416
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
1517
</PropertyGroup>
18+
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
19+
<PublishSingleFile>true</PublishSingleFile>
20+
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
21+
<DebugType>embedded</DebugType>
22+
<DebugSymbols>false</DebugSymbols>
23+
<SelfContained>false</SelfContained>
24+
</PropertyGroup>
1625
<PropertyGroup>
1726
<StartupObject />
1827
</PropertyGroup>
@@ -57,4 +66,4 @@
5766
<ItemGroup>
5867
<PackageReference Include="System.Resources.Extensions" Version="8.0.0" />
5968
</ItemGroup>
60-
</Project>
69+
</Project>

0 commit comments

Comments
 (0)