tag:help.appveyor.com,2012-11-13:/discussions/problems/28656-issue-with-c-builds-due-to-msbuild-not-finding-mstesttestframeworkAppVeyor: Discussion 2021-02-03T21:03:19Ztag:help.appveyor.com,2012-11-13:Comment/488774852020-12-03T18:17:23Z2020-12-03T18:17:26ZIssue with C# builds due to msbuild not finding MSTest.TestFramework <div><p>I'm getting a host of compilation issues most of them with</p>
<p>error CS0234: The type or namespace name 'VisualStudio' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)</p>
<p>From online searches it seems to be an issue due to either not finding that framework, or with version mismatches between the framework and similar things. Appveyor's documentation indicates that the MsTest framework is available for all builds to I'm not sure what I should be adding. I'm using the default settings (Visual Studio 2019) on a public git repo. I've also used other versions of the VS but had the same results.</p>
<p>I had the same issue building the code on my local machine (macos) but I was able to resolve that by opening the project in VS2019, unloading/closing it and reloading it. At that point the build succeeds on both VS and msbuild</p></div>Pr Devtag:help.appveyor.com,2012-11-13:Comment/488774852020-12-04T03:57:49Z2020-12-04T03:57:49ZIssue with C# builds due to msbuild not finding MSTest.TestFramework <div><p>Could you share a URL of the project please?</p></div>Feodor Fitsner