如何运行和构建解决方案visual studio 2017窗口的视觉为mac [英] How run and build solution visual studio 2017 window on visual for mac

查看:150
本文介绍了如何运行和构建解决方案visual studio 2017窗口的视觉为mac的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,


 在我的团队中使用mac和window但是在窗口上创建解决方案无法在mac contra上构建和运行。现在是mac上的错误运行解决方案窗口


CSC:错误CS0041:写入调试信息时出现意外错误 - 'Windows PDB编写器不可用 - 找不到Microsoft.DiaSymReader.Native.x86 .dll'(CS0041)


请帮助配置在mac上运行和构建解决方案。


谢谢,


quanvq,

解决方案

您好QUANVQ,


谢谢在这里发布。


我在Windows上使用Visual Studio 2017 RTM创建了一个简单的项目,然后使用Visual Studio for Mac在MAC上构建它,但是无法得到与您相同的错误。遇到 您是否已将Microsoft.Net.Compilers包安装到您的项目中?
如果是,至于现在的解决方法,您可以将Microsoft.Net.Compilers的使用限制为Release配置(编辑* .csproj文件):

 < Import Project =" .. \ packagesages \ Microsoft.Net.Compilers.1.3.2\build\Microsoft.Net.Compilers.props"条件="'


(配置)'=='发布'并存在('.. \ packagesages \ Microsoft.Net.Compilers.1.3.2\build \ Microsoft.Net.Compilers.props')" />

看一下条件的开头:

' 


(配置)'=='发布'

或者您可以尝试构建项目在发布配置中。


如果上述情况无法帮助您,请与我们分享更多详细步骤以重现此问题?感谢。


Dear all,

 In my team use mac and window but solution create on window can't build and run on mac contra. now is error run solution window on mac

CSC: Error CS0041: Unexpected error writing debug information -- 'Windows PDB writer is not available -- could not find Microsoft.DiaSymReader.Native.x86.dll' (CS0041)

pls help config run and build solution on mac.

thanks,

quanvq,

解决方案

Hi QUANVQ,

Thanks for posting here.

I have created a simple project on Windows with Visual Studio 2017 RTM, then build it on the MAC with Visual Studio for Mac, but could not got the same error as you encountered.  Have you installed the Microsoft.Net.Compilers package to your project? If yes, as for workaround for now you can just limit usage of Microsoft.Net.Compilers to Release configuration (edit *.csproj file):

<Import Project="..\packages\Microsoft.Net.Compilers.1.3.2\build\Microsoft.Net.Compilers.props" Condition="'


(Configuration)' == 'Release' And Exists('..\packages\Microsoft.Net.Compilers.1.3.2\build\Microsoft.Net.Compilers.props')" />

Take a look at beginning of condition:

'


(Configuration)' == 'Release'

Or you can try to building the project in release configuration.

If above could not help you, could you please sharing us more detail steps to reproduce this issue? Thanks.


这篇关于如何运行和构建解决方案visual studio 2017窗口的视觉为mac的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆