How to create the App Package with the WinUi Desktop mode using cake plugin #3411
Unanswered
DhanushKRaja
asked this question in
Q&A
Replies: 1 comment 4 replies
-
I would suggest that you try getting it work by invoking MSBuild from the command line first. After that, I'm sure there are people who can help you convert that into a Cake script. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the build system, I'm trying to create a App Package with the WinUi Desktop mode using cake plugins. I could create this same for UWP using the below msbuild property. But, I could not create the App Package for WinUi Desktop mode.
I am using below configuration in my build systems.
MSBuildToolVersion VS2019 (tried with Default).
SetConfiguration: Release-Xml (tried with Release).
Please find the below MsBuild() which is working fine foe UWP App Package creation. I have used the same MsBuild() for WinUi Desktop mode. But, I could not achieve by this way.
context.MSBuild(csProject.FullName, settings =>
settings.SetConfiguration(configuration).
UseToolVersion(msBuildVersion).
WithProperty("referencepath", referencepath).
WithProperty("PreBuildEvent", "").
WithProperty("GenerateLibraryLayout", "true").
AddFileLogger(new MSBuildFileLogger { LogFile = warningLog, MSBuildFileLoggerOutput = MSBuildFileLoggerOutput.WarningsOnly }).
AddFileLogger(new MSBuildFileLogger { LogFile = errorLog, MSBuildFileLoggerOutput = MSBuildFileLoggerOutput.ErrorsOnly }).
WithProperty("CodeAnalysisRuleSet", $"{csProject.Directory}/FxCop.ruleset").
WithProperty("StyleCopOverrideSettingsFile", $"{csProject.Directory}/settings.StyleCop").
WithProperty("TreatWarningsAsErrors", assembly.TreatWarningsAsErrors.ToString()).
WithProperty("OutputPath", projoutputpath).
WithProperty("IntermediateOutputPath", intermediateOutputPath).
SetVerbosity(Cake.Core.Diagnostics.Verbosity.Minimal));
Visual Studio Configuration:
Please suggest how to create a App Package for WinUi Desktop mode using Cake Plugins.
Beta Was this translation helpful? Give feedback.
All reactions