CsprojToVs2017 icon indicating copy to clipboard operation
CsprojToVs2017 copied to clipboard

Converting an old unit test project leaves reference to MS Test Framework

Open mungojam opened this issue 6 years ago • 2 comments

I'll try and post an example project later, but after converting two old unit test projects, I was left with the following references in each one which I had to manually delete:

  <ItemGroup>
    <Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
  </ItemGroup>
    <Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework">
      <HintPath>..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PublicAssemblies\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll</HintPath>
    </Reference>

The MSTest unit test packages had been correctly added in so it clearly detected that they were unit test projects.

mungojam avatar May 02 '18 12:05 mungojam

I also have this and the converted CodedUITest can't be compiled, because the CodedUITestAttribute is not found

MagicAndre1981 avatar May 03 '18 17:05 MagicAndre1981

I've created a new CodedUI Project in VS2017 15.6 and here the old format is used. So is CodedUI not compatible with the new csproj format? Should it be excluded?

MagicAndre1981 avatar May 04 '18 07:05 MagicAndre1981