Fix trimming breaking dependency injection on publish

This commit is contained in:
trawzified 2024-05-16 21:50:49 +02:00
parent 6db4fd0737
commit c67da65cd8
3 changed files with 5 additions and 5 deletions

View File

@ -6,7 +6,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PropertyGroup> <PropertyGroup>
<Configuration>Release</Configuration> <Configuration>Release</Configuration>
<Platform>Any CPU</Platform> <Platform>Any CPU</Platform>
<PublishDir>bin\Release\net8.0-windows\publish\</PublishDir> <PublishDir>bin\Release\net8.0\publish\win-x64\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol> <PublishProtocol>FileSystem</PublishProtocol>
<_TargetId>Folder</_TargetId> <_TargetId>Folder</_TargetId>
<TargetFramework>net8.0</TargetFramework> <TargetFramework>net8.0</TargetFramework>
@ -14,5 +14,6 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<SelfContained>true</SelfContained> <SelfContained>true</SelfContained>
<PublishSingleFile>false</PublishSingleFile> <PublishSingleFile>false</PublishSingleFile>
<PublishReadyToRun>false</PublishReadyToRun> <PublishReadyToRun>false</PublishReadyToRun>
<PublishTrimmed>false</PublishTrimmed>
</PropertyGroup> </PropertyGroup>
</Project> </Project>

View File

@ -25,10 +25,9 @@ public class SetNexusApiKey
public static VerbDefinition Definition = new VerbDefinition("set-nexus-api-key", public static VerbDefinition Definition = new VerbDefinition("set-nexus-api-key",
"Sets the Nexus API key to the specified value", "Sets the Nexus API key to the specified value",
new[] [
{
new OptionDefinition(typeof(string), "k", "key", "The Nexus API key") new OptionDefinition(typeof(string), "k", "key", "The Nexus API key")
}); ]);
public async Task<int> Run(string key) public async Task<int> Run(string key)
{ {

View File

@ -8,7 +8,7 @@
<PackageLicenseExpression>GPL-3.0-or-later</PackageLicenseExpression> <PackageLicenseExpression>GPL-3.0-or-later</PackageLicenseExpression>
<Version>$(VERSION)</Version> <Version>$(VERSION)</Version>
<AssemblyName>wabbajack-cli</AssemblyName> <AssemblyName>wabbajack-cli</AssemblyName>
<PublishTrimmed>true</PublishTrimmed> <PublishTrimmed>false</PublishTrimmed>
<TimeMode>linked</TimeMode> <TimeMode>linked</TimeMode>
<NoWarn>CS8600</NoWarn> <NoWarn>CS8600</NoWarn>
<NoWarn>CS8601</NoWarn> <NoWarn>CS8601</NoWarn>