chore: pre-pkg dot net with win binary
This commit is contained in:
parent
4a5da4504b
commit
6c0b6c0531
2 changed files with 8 additions and 6 deletions
|
|
@ -2,12 +2,14 @@
|
|||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<RollForward>Major</RollForward>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||
<PublishSingleFile>true</PublishSingleFile>
|
||||
<SelfContained>false</SelfContained>
|
||||
<SelfContained>true</SelfContained>
|
||||
<PublishTrimmed>true</PublishTrimmed>
|
||||
<PublishReadyToRun>true</PublishReadyToRun>
|
||||
<EnableCompressionInSingleFile>true</EnableCompressionInSingleFile>
|
||||
<AssemblyName>WindowsHelper</AssemblyName>
|
||||
<RootNamespace>WindowsHelper</RootNamespace>
|
||||
<EnableWindowsTargeting>true</EnableWindowsTargeting>
|
||||
|
|
@ -18,7 +20,7 @@
|
|||
<PackageReference Include="NAudio" Version="2.2.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0-windows' Or '$(RuntimeIdentifier)' == 'win-x64'">
|
||||
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0-windows' Or '$(RuntimeIdentifier)' == 'win-x64'">
|
||||
<FrameworkReference Include="Microsoft.WindowsDesktop.App" />
|
||||
</ItemGroup>
|
||||
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@
|
|||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "pnpm --filter @amical/types generate:all && dotnet publish -c Release -r win-x64 --self-contained false -o bin",
|
||||
"build:native": "dotnet publish -c Release -r win-x64 --self-contained false -o bin",
|
||||
"build": "pnpm --filter @amical/types generate:all && dotnet publish -c Release -r win-x64 --self-contained true -o bin",
|
||||
"build:native": "dotnet publish -c Release -r win-x64 --self-contained true -o bin",
|
||||
"clean": "rm -rf bin obj"
|
||||
},
|
||||
"os": [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue