diff --git a/GameBundle/GameBundle.csproj b/GameBundle/GameBundle.csproj index 3d2cbb4..7eab498 100644 --- a/GameBundle/GameBundle.csproj +++ b/GameBundle/GameBundle.csproj @@ -2,7 +2,7 @@ Exe - net5.0 + net6.0 Ellpeck A tool to package MonoGame and other .NET Core applications into several distributable formats diff --git a/GameBundle/Program.cs b/GameBundle/Program.cs index cf7cdb8..efb9d80 100644 --- a/GameBundle/Program.cs +++ b/GameBundle/Program.cs @@ -60,7 +60,7 @@ namespace GameBundle { private static int Publish(Options options, FileInfo proj, BuildConfig config) { var buildDir = GetBuildDir(options, config.DirectoryName); - var publishResult = RunProcess(options, "dotnet", $"publish \"{proj.FullName}\" -o \"{buildDir.FullName}\" -r {config.Rid} -c {options.BuildConfig} /p:PublishTrimmed={options.Trim} {options.BuildArgs}"); + var publishResult = RunProcess(options, "dotnet", $"publish \"{proj.FullName}\" -o \"{buildDir.FullName}\" -r {config.Rid} --self-contained -c {options.BuildConfig} /p:PublishTrimmed={options.Trim} {options.BuildArgs}"); if (publishResult != 0) return publishResult; diff --git a/Test/Bundle.bat b/Test/Bundle.bat index e9b9b10..c1db647 100644 --- a/Test/Bundle.bat +++ b/Test/Bundle.bat @@ -1 +1 @@ -"../GameBundle/bin/Debug/net5.0/GameBundle.exe" -wlmWL -bzn -s Test.csproj -o bin/Bundled -v --mac-bundle-ignore macmain.txt \ No newline at end of file +"../GameBundle/bin/Debug/net6.0/GameBundle.exe" -wlmWL -bzn -s Test.csproj -o bin/Bundled -v --mac-bundle-ignore macmain.txt \ No newline at end of file diff --git a/Test/Test.csproj b/Test/Test.csproj index 05c350f..d4482b5 100644 --- a/Test/Test.csproj +++ b/Test/Test.csproj @@ -2,7 +2,7 @@ Exe - net5.0 + net6.0 false false Test Project