在 virtualbox 中运行的 Visual Studio 2008 无法编译共享文件夹上的文件
我使用 virtualbox 自己的共享文件夹将我的源目录从我的 mac 共享到我的 windows virtualbox。事实证明,它无法编译位于共享驱动器上的任何解决方案。
由于找不到 obj\Debug\.tmp,因此无法编译文件。 它说该文件还不是有效的 win32 资源文件,当我查找它时它不存在。
错误 1 'S:\experiment\WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\CSCA3A1.tmp' 不是有效的 Win32 资源文件 WindowsFormsApplication1
我已使用 Caspol 将 FullTrust 添加到网络共享,因此不应存在任何安全问题。我可以将文件保存到共享并修改它们。在解决方案文件上运行 msbuild 会产生相同的错误。
我该如何解决这个问题?
这是在同一解决方案上运行 msbuild 时的输出:
构建失败。
“S:\实验\WindowsFormsApplication1\WindowsFormsApplication1.sln” (默认目标) (1) -> “S:\实验\WindowsFormsApplication1\WindowsFormsApplication1\WindowsFormsAp plication1.csproj"(默认目标)(2) ->(CoreCompile 目标)->
CVTRES:致命错误 CVT1103:无法读取文件 CSC:错误 CS1583: 的:\实验\WindowsFormsApplication1\WindowsFormsAppli cation1\obj\Debug\CSCA1A9.tmp' 不是有效的 Win32 资源文件0 警告 2 错误
Im using virtualbox's own shared folders to share my source directory from my mac to my windows virtualbox. It turns out that it cannot compile any solution that is located on the shared drive.
It fails to compile the files since it cannot find obj\Debug\.tmp.
It says that that file is not a valid win32-resource file yet, when I look for it it doesn't exist.
Error 1 'S:\experiment\WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\CSCA3A1.tmp'
is not a valid Win32 resource file WindowsFormsApplication1
I've added FullTrust to the networkshare using Caspol so there shouldn't be any security issues. I can save files to the share and modify them. Running msbuild on the solution file produces the same errors.
How do I fix this?
this is the output when running msbuild on the same solution:
Build FAILED.
"S:\experiment\WindowsFormsApplication1\WindowsFormsApplication1.sln"
(default target) (1) ->
"S:\experiment\WindowsFormsApplication1\WindowsFormsApplication1\WindowsFormsAp
plication1.csproj" (default target) (2) -> (CoreCompile target) ->
CVTRES : fatal error CVT1103: cannot read file CSC : error CS1583:
's:\experiment\WindowsFormsApplication1\WindowsFormsAppli
cation1\obj\Debug\CSCA1A9.tmp' is not a valid Win32 resource file0 Warning(s) 2 Error(s)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
显然,VirtualBox 版本 4.1.0 中的 Windows7 x64 来宾和共享文件夹存在问题。我升级到最新版本 4.1.2(昨天发布),现在编译工作非常顺利。
Apparently there was an issue with Windows7 x64 guests and shared folders in VirtualBox version 4.1.0. I upgraded to the latest version 4.1.2 (released yesterday) and now compiling works like a charm.