简体   繁体   English

发布:找不到路径的一部分……\\obj\\DEV\\AspnetCompileMerge\\Source\\bin\\roslyn\\csc.exe'

[英]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.我最近将新的 .NET 编译器 NuGet 包 (Microsoft.CodeDom.Providers.DotNetCompilerPlatfor) 添加到现有的旧 MVC.NET 网站。 Now when trying to publish the website I get the following exception:现在,在尝试发布网站时,出现以下异常:

Could not find a part of the path … \\obj\\DEV\\AspnetCompileMerge\\Source\\bin\\roslyn\\csc.exe'找不到路径的一部分……\\obj\\DEV\\AspnetCompileMerge\\Source\\bin\\roslyn\\csc.exe'

I have tried everything mentioned in this question , but nothing worked.我已经尝试了这个问题中提到的所有内容,但没有任何效果。 It is, after all, a slightly different problem.毕竟,这是一个略有不同的问题。 The problem mentioned in that post is build exceptions, my solution builds fine locally.该帖子中提到的问题是构建异常,我的解决方案在本地构建良好。 Uninstalling the NuGet packages works, but that's not really a solution.卸载 NuGet 包有效,但这并不是真正的解决方案。

The issue is basically the same as this one, but that also has no solution.这个问题和这个基本一样,但是那个也没有解决办法。

Publish 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 solve this one?关于如何解决这个问题的任何想法?

This was a known issue whereby the Roslyn binary wasn't being copied correctly to the publish directory.这是一个已知问题,即 Roslyn 二进制文件未正确复制到发布目录。 It should be fixed if you install Microsoft.CodeDom.Providers.DotNetCompilerPlatform 1.0.7 .如果您安装Microsoft.CodeDom.Providers.DotNetCompilerPlatform 1.0.7应该修复它。

There seem to be some residual issues which are being tracked here .似乎有一些遗留问题正在这里跟踪

Same problem accourred to me while publish MVC .NET application to my local path.在将 MVC .NET 应用程序发布到我的本地路径时,我遇到了同样的问题。 I solved the problem delete Microsoft.CodeDom.Providers.DotNetCompilerPlatform by nuget package.我通过 nuget 包解决了删除Microsoft.CodeDom.Providers.DotNetCompilerPlatform的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 找不到部分路径... bin\roslyn\csc.exe - Could not find a part of the path ... bin\roslyn\csc.exe VSOS上的macOS:找不到文件/bin\\roslyn\\csc.exe“。路径问题 - VS on macOS: Could not find file /bin\roslyn\csc.exe". Path issue 在debian上的mono:找不到文件“/srv/www/proj/bin\roslyn\csc.exe” - mono on debian: Could not find file “/srv/www/proj/bin\roslyn\csc.exe” 找不到文件“ .. \\ bin \\ roslyn \\ csc.exe”。 发布到服务器后 - Could not find file '..\bin\roslyn\csc.exe'. after publishing to server Docker .NET Framework 正在触发错误访问路径“C:\RoslynCompilers-3.6.0\tools\csc.exe”被拒绝 - Docker .NET Framework is triggering error Access to the path 'C:\RoslynCompilers-3.6.0\tools\csc.exe' is denied 动态编译的文件在.NET中使用csc.exe吗? - Do dynamically compiled files use csc.exe in .NET? 性能降低—单击重定向链接后运行的ASP.NET ASPNET_WP.EXE和CSC.EXE - Slow Performance — ASP .NET ASPNET_WP.EXE and CSC.EXE Running After Clicking Redirect Link 预编译:目录不存在 '~\projectName\obj\Release\AspnetCompileMerge\Source\Config' C# - Precompiling: Directory doesn't exists '~\projectName\obj\Release\AspnetCompileMerge\Source\Config' C# 错误:“找不到路径的一部分” - ERROR: “Could not find a part of the path” DirectoryNotFoundException-找不到路径的一部分 - DirectoryNotFoundException - could not find a part of the path
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM