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
Avalonia.Diagnostics
Avalonia template include conditional package Avalonia.Diagnostics with Condition attribute directly on PackageReference element.
Condition
PackageReference
avalonia-dotnet-templates/templates/csharp/app/AvaloniaAppTemplate.csproj
Lines 18 to 19 in 43c5d48
dotnet restore --use-lock-file -property:Configuration=Debug dotnet restore --use-lock-file --locked-mode -property:Configuration=Release
Second command will fail with NU1004 error.
NU1004
Move conditional attribute to metadata IncludeAssets and PrivateAssets:
IncludeAssets
PrivateAssets
<PackageReference Include="Avalonia.Diagnostics" Version="AvaloniaVersionTemplateParameter"> <IncludeAssets Condition="'$(Configuration)' != 'Debug'">None</IncludeAssets> <PrivateAssets Condition="'$(Configuration)' != 'Debug'">All</PrivateAssets> </PackageReference>
That exclude assembly from Release build output, but allows restore with --locked-mode.
--locked-mode
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is your feature request related to a problem? Please describe.
Avalonia template include conditional package
Avalonia.Diagnostics
withCondition
attribute directly onPackageReference
element.avalonia-dotnet-templates/templates/csharp/app/AvaloniaAppTemplate.csproj
Lines 18 to 19 in 43c5d48
Such approach is not friendly with lock file. For example:
Second command will fail with
NU1004
error.Describe the solution you'd like
Move conditional attribute to metadata
IncludeAssets
andPrivateAssets
:That exclude assembly from Release build output, but allows restore with
--locked-mode
.Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: