1

Closed

Scaffolding fails when .NETPortable libraries are referenced

description

When a library is built using the Portable Class Libraries Project and then referenced by an Asp.Net Mvc 5.1 project, scaffolding fails because of the referenced project.

CS0433: The type 'System.IO.Path' exists in both 'c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETPortable\v4.5\Profile\Profile78\System.Runtime.Extensions.dll' and 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll'
CS0433: The type 'System.Reflection.Assembly' exists in both 'c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETPortable\v4.5\Profile\Profile78\System.Runtime.Extensions.dll' and 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll'
CS0117: 'System.Reflection.Assembly' does not contain a definition for 'GetAssembly'

file attachments

Closed Mar 5 at 10:44 PM by danroth27
Thank you for reporting this issue. We will follow up with the appropriate tooling team to make sure this gets addressed.

comments