Post: Could not find part of path ... \ obj \ DEV \ AspnetCompileMerge \ Source \ bin \ roslyn \ csc.exe '

I recently added new .NET NuGet compiler packages (Microsoft.CodeDom.Providers.DotNetCompilerPlatfor) to an existing older MVC.NET site. Now, while trying to publish the site, I get the following exception:

Could not find part of path ... \ OBJ \ DEV \ AspnetCompileMerge \ Source \ Bin \ Roslyn \ csc.exe '

I tried everything mentioned in this question , but nothing worked. This is, after all, a slightly different problem. The problem mentioned in this article is throwing exceptions, my solution is building locally. Removing NuGet packages works, but it's not really a solution.

The problem is basically the same as this , but it also has no solution.

Post output:

4>------ Publish started: Project: Jdn.ArticleCatalogue.Web, Configuration: DEV Any CPU ------
4>Connecting to \\vm-arcawebdev01\WEBSITES\ArticleCatalogue...
4>Transformed Web.config using D:\DOTNET\Local\Logistics.Web\Portal\DEV\Application Projects\Article Catalogue\Jdn.ArticleCatalogue.Web\Web.DEV.config into obj\DEV\TransformWebConfig\transformed\Web.config.
4>Copying all files to temporary location below for package/publish:
4>obj\DEV\AspnetCompileMerge\Source.
4>C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler.exe -v / -p "D:\DOTNET\Local\Logistics.Web\Portal\DEV\Application Projects\Article Catalogue\Jdn.ArticleCatalogue.Web\obj\DEV\AspnetCompileMerge\Source" "D:\DOTNET\Local\Logistics.Web\Portal\DEV\Application Projects\Article Catalogue\Jdn.ArticleCatalogue.Web\obj\DEV\AspnetCompileMerge\TempBuildDir" -keyfile "..\..\..\Solution Items\Jdn.LogisticsPortal.snk" 
4>ASPNETCOMPILER(0,0): Error ASPRUNTIME: Could not find a part of the path 'D:\DOTNET\Local\Logistics.Web\Portal\DEV\Application Projects\Article Catalogue\Jdn.ArticleCatalogue.Web\obj\DEV\AspnetCompileMerge\Source\bin\roslyn\csc.exe'.

      

Any ideas on how to resolve this issue?

+3


source to share


1 answer


This was a known issue where the Roslyn binary was not copied correctly to the publishing directory. It should be fixed if you install Microsoft.CodeDom.Providers.DotNetCompilerPlatform 1.0.7

.



There seem to be some residual issues being tracked here .

+5


source







All Articles