The answer for this is different for Website project and Web application Project.The underlying issue is same that NuGet package is behaving differently on different machine. It may be rights issue or some execution policy which stops it from copying to Bin folderAs you know Roslyn is new compiler. you should have it in Bin folder for these ProjectsGo to your website NuGet Packages check this Folder Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\code\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0Do you see it ? Can you see code\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0\tools\RoslynLatest in it Now as part of compiling this Folder should get copied to your website under bin like this.\code\WebSite1\Bin\Roslyn some how that is not happening for you .Try running Visual studio as Admin .Copy Roslyn folder manually.Try uninstall and install of NuGet Package.Remember this package compile your folder and if its not there you cannot compile anything and so you cannot add anything too.Try copying this package to offline versiontools -> options-> nuget package Manager->Package source-> Microsoft Visual Studio Offline Packages C:\Program Files (x86)\Microsoft SDKs\NuGetPackages
↧