Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Error CS0433: the type 'assemblyTrademarkAttribute' exists in both 'mscorlib' ...

$
0
0

I'm attempting to create a project in Visual Studio 2015 that uses Angular, mvc.  I'm going according to an article on CodeProject.com that others seem to be able to get to work.

https://www.codeproject.com/Articles/791740/Using-AngularJs-ASP-NET-MVC-Web-API-and-EntityFram

I cannot.  It blows up in the build with the following errors:

2>C:\Users\lstockton\Source\Workspaces\AngularMVC\AngularMVC.Application\Properties\AssemblyInfo.cs(8,12,8,25): error CS0433: The type 'AssemblyTitleAttribute' exists in both 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
2>C:\Users\lstockton\Source\Workspaces\AngularMVC\AngularMVC.Application\Properties\AssemblyInfo.cs(9,12,9,31): error CS0433: The type 'AssemblyDescriptionAttribute' exists in both 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
2>C:\Users\lstockton\Source\Workspaces\AngularMVC\AngularMVC.Application\Properties\AssemblyInfo.cs(10,12,10,33): error CS0433: The type 'AssemblyConfigurationAttribute' exists in both 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
2>C:\Users\lstockton\Source\Workspaces\AngularMVC\AngularMVC.Application\Properties\AssemblyInfo.cs(11,12,11,27): error CS0433: The type 'AssemblyCompanyAttribute' exists in both 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
2>C:\Users\lstockton\Source\Workspaces\AngularMVC\AngularMVC.Application\Properties\AssemblyInfo.cs(12,12,12,27): error CS0433: The type 'AssemblyProductAttribute' exists in both 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
2>C:\Users\lstockton\Source\Workspaces\AngularMVC\AngularMVC.Application\Properties\AssemblyInfo.cs(13,12,13,29): error CS0433: The type 'AssemblyCopyrightAttribute' exists in both 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
2>C:\Users\lstockton\Source\Workspaces\AngularMVC\AngularMVC.Application\Properties\AssemblyInfo.cs(14,12,14,29): error CS0433: The type 'AssemblyTrademarkAttribute' exists in both 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
2>C:\Users\lstockton\Source\Workspaces\AngularMVC\AngularMVC.Application\Properties\AssemblyInfo.cs(15,12,15,27): error CS0433: The type 'AssemblyCultureAttribute' exists in both 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
2>C:\Users\lstockton\Source\Workspaces\AngularMVC\AngularMVC.Application\Properties\AssemblyInfo.cs(16,12,16,30): error CS0433: The type 'InternalsVisibleToAttribute' exists in both 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
2>C:\Users\lstockton\Source\Workspaces\AngularMVC\AngularMVC.Application\Properties\AssemblyInfo.cs(21,12,21,22): error CS0433: The type 'ComVisibleAttribute' exists in both 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
2>C:\Users\lstockton\Source\Workspaces\AngularMVC\AngularMVC.Application\Properties\AssemblyInfo.cs(24,12,24,16): error CS0433: The type 'GuidAttribute' exists in both 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
2>C:\Users\lstockton\Source\Workspaces\AngularMVC\AngularMVC.Application\Properties\AssemblyInfo.cs(36,12,36,27): error CS0433: The type 'AssemblyVersionAttribute' exists in both 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
2>C:\Users\lstockton\Source\Workspaces\AngularMVC\AngularMVC.Application\Properties\AssemblyInfo.cs(37,12,37,31): error CS0433: The type 'AssemblyFileVersionAttribute' exists in both 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
2>C:\Users\lstockton\AppData\Local\Temp\.NETFramework,Version=v4.6.1.AssemblyAttributes.cs(4,46,4,70): error CS0433: The type 'TargetFrameworkAttribute' exists in both 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'

Essentially, this conflict exists.  If I remove the reference to netstandard, then I get errors that it's referencing objects that don't exist and that I need to create a reference to netstandard 2.0.0.0.  and if I create that reference, then I get this conflict.


Viewing all articles
Browse latest Browse all 9386

Trending Articles