chore: pre-pkg dot net with win binary

This commit is contained in:
haritabh-z01 2025-10-25 23:03:05 +05:30
parent 4a5da4504b
commit 6c0b6c0531
2 changed files with 8 additions and 6 deletions

View file

@ -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>

View file

@ -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": [