Quantcast
Channel: Could not find a part of the path ... bin\roslyn\csc.exe - Stack Overflow
Browsing index pages (62 articles)

Answer by Adam Smith for Could not find a part of the path ......

I have multiple .NET Framework 4.8 ASP.Net web apps in the same solution. They are still using packages.config and are using Microsoft.CodeDom.Providers.DotNetCompilerPlatform version...

View Article


Image may be NSFW.
Clik here to view.

Could not find a part of the path ... bin\roslyn\csc.exe

I am trying to run an ASP.NET MVC (model-view-controller) project retrieved from TFS (Team Foundation Server) source control. I have added all assembly references and I am able to build and compile...

View Article


Answer by Mitchell for Could not find a part of the path ... bin\roslyn\csc.exe

The problem with the default VS2015 templates is that the compiler isn't actually copied to the tfr\bin\roslyn\ directory, but rather the {outdir}\roslyn\ directoryAdd this code in your .csproj...

View Article

Answer by Rob Cannon for Could not find a part of the path ......

Here is a more MSBuild way of doing this. <Target Name="CopyRoslynFiles" AfterTargets="AfterBuild" Condition="!$(Disable_CopyWebApplication) And '$(OutDir)' !=...

View Article

Answer by Martijn van Halen for Could not find a part of the path ......

In my case I just needed to go to the bin directory in Visual Studio Solution Explorer (web application project) and include the roslyn project directly. By right clicking the folder and selecting...

View Article


Answer by Basim for Could not find a part of the path ... bin\roslyn\csc.exe

To prevent the build from also copying the Roslyn files to the bin directory, you have to also comment out this line that gets placed at the top of your Web application project:<!-- <Import...

View Article

Answer by andy250 for Could not find a part of the path ... bin\roslyn\csc.exe

TL; DRrun this in the Package Manager Console:Update-Package Microsoft.CodeDom.Providers.DotNetCompilerPlatform -rMore informationThis problem is not related to Visual Studio itself, so answers...

View Article

Answer by jonnybot for Could not find a part of the path ... bin\roslyn\csc.exe

So, Rob Cannon's answer essentially worked for me, but I had to tweak a handful of the options. Specifically, I had to remove the condition on the target, as well as change the Include attribute, as...

View Article


Answer by Mark C. for Could not find a part of the path ... bin\roslyn\csc.exe

In my case, similar to Basim, there was a NuGet package that was telling the compiler we needed C# 6, which we didn't.We had to remove the NuGet package...

View Article


Answer by Korayem for Could not find a part of the path ... bin\roslyn\csc.exe

The problem with the default VS2015 templates is that the compiler isn't actually copied to the {outdir}_PublishedWebsites\tfr\bin\roslyn\ directory, but rather the {outdir}\roslyn\ directory. This is...

View Article

Answer by Anrijs Vītoliņš for Could not find a part of the path ......

If you were adding ASPNETCOMPILER to compile your Razor views in MVC, like in this StackOverflow question, then change PhysicalPath to place where Roslyn nuget package is located (usually pointed via...

View Article

Answer by user6326076 for Could not find a part of the path ......

Open the project file and remove all references with Import Project="..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0....Open web.config and remove all system.codedom compilers...

View Article

Answer by Igor Semin for Could not find a part of the path ......

Add PropertyGroup to your .csproj file <PropertyGroup><PostBuildEvent> if not exist "$(WebProjectOutputDir)\bin\Roslyn" md "$(WebProjectOutputDir)\bin\Roslyn" start /MIN xcopy /s /y /R...

View Article


Answer by eyoung100 for Could not find a part of the path ... bin\roslyn\csc.exe

IssueBe aware that the NuGet PM breaks the Rosalyn behavior. Click Tools > NuGet Package Manager > Manage NuGet Packages for Solution If an update Exists for...

View Article

Answer by Malik Khalil for Could not find a part of the path ......

NOTE: If you are not interested in using Roslyn,follow this answer and remove itThe Roslyn:Your build is trying to find \bin\roslyn\csc.exe because the following packages have been added to your...

View Article


Answer by Ben for Could not find a part of the path ... bin\roslyn\csc.exe

Upgrading Microsoft.CodeDom.Providers.DotNetCompilerPlatform from 1.0.0 to 1.0.1 fixed this for me.

View Article

Answer by Robert J. Good for Could not find a part of the path ......

I had to change the WebAPI and MVC project files to not build views: <MvcBuildViews>false</MvcBuildViews>This resolved my TFS 2015 Build server error with roslyn. Still not sure why csc.exe...

View Article


Answer by hichamkazan for Could not find a part of the path ......

Updating nuget packages worked for me Right click on the solution > Manage NuGet packages for solution and update all the packages and specially:Microsoft.Net.Compilersand...

View Article

Answer by user1903050 for Could not find a part of the path ......

Delete the Bin folder in your solution explorer and Build the solution again. That would solve the problem

View Article

Answer by Ciaran for Could not find a part of the path ... bin\roslyn\csc.exe

I experienced this error on a Jenkins build server running MSBuild, which outputs the build files to a separate folder location (_PublishedWebsites). Exactly the same - the roslyn folder was not in the...

View Article
Browsing index pages (62 articles)


Latest Images