3
Answers

mscorlib error visual studio 2015

Photo of Umut çelik

Umut çelik

9y
3.8k
1
Severity Code Description Project File Line Suppression State
Warning Compiling transformation: Assuming assembly reference 'mscorlib, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' used by 'EnvDTE' matches identity 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' of 'mscorlib', you may need to supply runtime policy StokPro C:\Users\aras adar\Desktop\Stokkk\StokPro\StokPro\Models\DBModel.tt 1
How to solve this problem.thanks

Answers (3)

0
Photo of Umut çelik
NA 33 10.7k 9y
i try but
I get this error

PM> Install-Package Microsoft.NETCore -Version 5.0.0
Attempting to gather dependency information for package 'Microsoft.NETCore.5.0.0' with respect to project 'StokPro', targeting '.NETFramework,Version=v4.5.2'
Attempting to resolve dependencies for package 'Microsoft.NETCore.5.0.0' with DependencyBehavior 'Lowest'
Resolving actions to install package 'Microsoft.NETCore.5.0.0'
Resolved actions to install package 'Microsoft.NETCore.5.0.0'
Adding package 'Microsoft.CSharp.4.0.0' to folder 'C:\Users\aras adar\Desktop\Stokkk\StokPro\packages'
Added package 'Microsoft.CSharp.4.0.0' to folder 'C:\Users\aras adar\Desktop\Stokkk\StokPro\packages'
Added package 'Microsoft.CSharp.4.0.0' to 'packages.config'
Successfully installed 'Microsoft.CSharp 4.0.0' to StokPro
Install failed. Rolling back...
Package 'Microsoft.NETCore.Platforms.1.0.0' does not exist in project 'StokPro'
Removed package 'Microsoft.CSharp.4.0.0' from 'packages.config'
Package 'Microsoft.NETCore.Platforms.1.0.0' does not exist in folder 'C:\Users\aras adar\Desktop\Stokkk\StokPro\packages'
Removing package 'Microsoft.CSharp.4.0.0' from folder 'C:\Users\aras adar\Desktop\Stokkk\StokPro\packages'
Removed package 'Microsoft.CSharp.4.0.0' from folder 'C:\Users\aras adar\Desktop\Stokkk\StokPro\packages'
Install-Package : Could not install package 'Microsoft.NETCore.Platforms 1.0.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5.2', but the package does not conta
in any assembly references or content files that are compatible with that framework. For more information, contact the package author.
At line:1 char:2
+ Install-Package Microsoft.NETCore -Version 5.0.0
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
0
Photo of Nishant Mittal
NA 4.5k 1.1m 9y
I dont think so u gona use this DLL.Its a com component , so u can bypass the same during Build
0
Photo of Shakti Singh Dulawat
NA 5.4k 393k 9y
Their many be different reason for it, I found one solutions mentions http://stackoverflow.com/questions/32607616/visual-studio-2015-c-sharp-windows-universal-app-missing-assembly-reference may be it will work for you.