We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I create c# Console project in net6 to generate singlefile with the following setting
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net6.0</TargetFramework> <PublishSingleFile>true</PublishSingleFile> <SelfContained>false</SelfContained> <RuntimeIdentifier>win-x64</RuntimeIdentifier> </PropertyGroup> <!-- .... other properties --> </Project>
In visual studio 2022 I pack a package onbuild using the next line:
<GeneratePackageOnBuild>True</GeneratePackageOnBuild
The package generated ignore the above PublishSingleFile setting and generate package with multi files dependencies.
My alternative solution is using PowerShell to publish and pack the package.
Is there is a way for GeneratePackageOnBuild to use the PublishSingleFile setting?
GeneratePackageOnBuild
PublishSingleFile
The text was updated successfully, but these errors were encountered:
Tagging subscribers to this area: @agocke, @vitek-karas, @VSadov See info in area-owners.md if you want to be subscribed.
area-Single-File, untriaged
area-Single-File
untriaged
Sorry, something went wrong.
Looks like the pack task may need to be updated to handle publish output. Moving to SDK.
publish
Is there any progress for this issue?
joeloff
No branches or pull requests
I create c# Console project in net6 to generate singlefile with the following setting
In visual studio 2022 I pack a package onbuild using the next line:
The package generated ignore the above PublishSingleFile setting and generate package with multi files dependencies.
My alternative solution is using PowerShell to publish and pack the package.
Is there is a way for
GeneratePackageOnBuild
to use thePublishSingleFile
setting?The text was updated successfully, but these errors were encountered: