Repro
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
to <TargetFramework>netstandard2.0</TargetFramework>
for both unit test and library project (<OutputType>Library</OutputType>
).Now I cannot build solution. When I open project properties window I see error:
An error occurred trying to load the project properties window. Close the window and try again. Member not found. (Exception from HRESULT: 0x80020003 (DISP_E_MEMBERNOTFOUND))
Answer
I had to replace:
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
to:
<Project Sdk="Microsoft.NET.Sdk">
In my csproj file
Source: https://arminreiter.com/2017/05/port-net-framework-net-standard/
Does this help?
Ran into the same issue myself. Appears to be an issue with the solution file. I removed the project from the solution then added it back again. This cause VS to recognize this as the correct project type. Hope this helps somebody else from spending too much time on this issue.
User contributions licensed under CC BY-SA 3.0