Linked Questions
25 questions linked to/from Could not find a part of the path ... bin\roslyn\csc.exe
23
votes
1
answer
43k
views
'Could not find file ... bin\roslyn\csc.exe' [duplicate]
In Visual Studio 2017, when hitting Ctrl+F5 to
run my ASP.NET Framework Web API server, I get:
Could not find file ... bin\roslyn\csc.exe:
Running
Update-Package Microsoft.CodeDom.Providers....
593
votes
9
answers
125k
views
Compile Views in ASP.NET MVC
I want an msbuild task to compile the views so I can see if there are compile time errors at well... compile time. Any ideas?
326
votes
7
answers
92k
views
Difference between Rebuild and Clean + Build in Visual Studio
What is the difference between just a Rebuild and doing a Clean + Build in Visual Studio 2008? Is Clean + Build different then doing Clean + Rebuild?
67
votes
18
answers
216k
views
Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0
I just upgraded packages in an MVC 3 project (ASP.net 4), and now I am getting the following error message when accessing a page in that project:
Server Error in '/MyApplication' Application.
...
155
votes
2
answers
82k
views
How to use C# 7 with Visual Studio 2015?
Visual Studio 2017 (15.x) supports C# 7, but what about Visual Studio 2015 (14.x)?
How can I use C# 7 with it?
61
votes
6
answers
33k
views
Enabling c# 7 in a asp.net application
I just started working on my old solution in Visual Studio 2017. Just opening the solution in the old IDE worked seamlessly.
The c# application projects now default to the c# 7.0 compiler. The ...
36
votes
7
answers
51k
views
Compiler Error Message: The compiler failed with error code -532462766
This one seems to be originated after upgrading from vs2015 to vs2017.
The error is
Compiler Error Message: The compiler failed with error code
-532462766.
Some notes..
It works great on ...
29
votes
8
answers
100k
views
Could not load file or assembly 'System.Web.Mvc' . How to use the correct reference?
I have an application built on ASP.NET web forms which also supports MVC 5. I included MVC 5 API controllers in my project for which I had to upgrade Json from version 4.5 to 7.0. After making those ...
12
votes
6
answers
16k
views
csc.exe has stopped working causes Server Error in '/' Application
When I run my application on VS2015 I get a window saying that csc.exe has stopped working like below:
After I click to close the program I get another error in the browser saying:
Server Error in '/'...
13
votes
2
answers
10k
views
C#: throw invalid expression compilation
I'm using this code in order to check queryable value:
visitor.Queryable = queryable ?? throw new Exception("error message");
I'm getting a compilation error:
error CS1525: Invalid expression term '...
13
votes
3
answers
6k
views
roslyn compiler not copied to AspnetCompileMerge folder using msbuild
I have a .NET MVC project that I'm trying to deploy using Jenkins.
I had been letting Jenkins run msbuild, then copying the resulting files out using RoboCopy. I wanted to switch to just use a ...
4
votes
2
answers
9k
views
Publish: Could not find a part of the path … \obj\DEV\AspnetCompileMerge\Source\bin\roslyn\csc.exe'
I recently added the new .NET compiler NuGet packages (Microsoft.CodeDom.Providers.DotNetCompilerPlatfor) to an existing older MVC.NET website. Now when trying to publish the website I get the ...
6
votes
4
answers
4k
views
v1.0.6 of Microsoft.CodeDom.Providers.DotNetCompilerPlatform
When I update my dotNet MVC project to use v1.0.6 of Microsoft.CodeDom.Providers.DotNetCompilerPlatform I get deployment issues in that the roslyn directory is no longer placed under the bin directory ...
1
vote
3
answers
17k
views
Could not find file '..\bin\roslyn\csc.exe'. after publishing to server
My .net application is running well in my local machine. I am using Visual Studio 2015. When I publish the website and upload it to the server space, I am getting the following error.
I can't ...
2
votes
2
answers
19k
views
The type or namespace name '"Namespace"' could not be found in the global namespace (are you missing an assembly reference?)
I am trying to build my project by referencing private project using VS2012, it builds successfully on local machine, but I am trying to use Visual Studio Team Services (previously Visual Studio ...