TemplateStudio
TemplateStudio copied to clipboard
Investigate dotnet CLI with MSTest project
Describe the bug
dotnet build and dotnet test are failing with the current MSTest project we have. Adding EnableMSIXTooling = true to the test project csproj gets past the errors at least for an MSIX app project, but results in failures later on related to resources.pri not being dropped in the test build output. Setting WindowsPackageType = None in the app project to run unpackaged breaks dotnet build.
msbuild and vstest.console.exe don't hit these issues with the current test project we have.
To Reproduce
- Create a project with an MSTest project
- Run dotnet build from the solution folder
Additional context
40613036 - dotnet build of an unpackaged app doesn't work
No response
Applies to the following platforms:
- [X] WinUI
- [ ] WPF
- [ ] UWP
About your setup
- Visual Studio Version:
- Template Studio Wizard Version:
- Windows Build:
The test project will need <EnableMsixTooling>true</EnableMsixTooling> to support .NET CLI. However, that results in resources.pri not being copied to the test project output as expected.
Also, dotnet build with an unpackaged app project seems to be broken independent of Template Studio or the test project.