TemplateStudio icon indicating copy to clipboard operation
TemplateStudio copied to clipboard

Investigate dotnet CLI with MSTest project

Open mikebattista opened this issue 3 years ago • 1 comments
trafficstars

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

  1. Create a project with an MSTest project
  2. 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:

mikebattista avatar Jul 22 '22 22:07 mikebattista

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.

mikebattista avatar Jul 25 '22 17:07 mikebattista