使用单声道2.2.1和Visual Studio 2010的同时 [英] Using Mono 2.2.1 and Visual Studio 2010 simultaneously

查看:146
本文介绍了使用单声道2.2.1和Visual Studio 2010的同时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个C#.NET 3.5的项目在Visual Studio 2010中,添加一些类和形式并关闭它。从那以后,我打开与MonoDevelop的2.2.1项目,然后再添加一些额外的东西,并密切IST。
现在,当我重新打开Visual Studio 2010中的项目,项目经理转换弹出,并希望转换项目。
我分析了项目文件和差异只有以下两行:



Visual Studio 2010的:

 <项目DefaultTargets =生成的xmlns =http://schemas.microsoft.com/developer/msbuild/2003ToolsVersion =4.0> 

< TargetFrameworkVersion>&V3.5 LT; / TargetFrameworkVersion>
...



MonoDevelop的2.2.1:

 <项目DefaultTargets =生成的xmlns =http://schemas.microsoft.com/developer/msbuild/2003> 

(失踪)
...



你有什么建议,如何避免这种情况?怎么样调整的MonoDevelop编写项目文件的Visual Studio要读或禁用转化剂,或在后台静默转换。



和请有关工具链无投诉;)它必须是像


解决方案

我已经习惯了这样的问题很长一段时间

。我的经验法则是使在Visual Studio中的所有项目水平的变化(将修改的csproj文件),而在文件级别的更改可以同时在MonoDevelop中和Visual Studio没有问题地进行。



看来,MonoDevelop中不使用的MSBuild脚本中到Visual Studio兼容的方式。



您可以尝试一下它的最新版本,但我不'认为根本将在短时间内有太大变化。


I created a C# .NET 3.5 project with Visual Studio 2010, add some classes and forms and close it. After that I open the project with Monodevelop 2.2.1 and add some additional stuff and close ist again. Now when I reopen the project with Visual Studio 2010, the project conversion manager pops up and wants to convert the project. I analysed the project files and the differences are only the following two lines:

Visual Studio 2010:

<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
...
    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
...

Monodevelop 2.2.1:

<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
...
    (missing)
...

Do you have any suggestions how to avoid this? Like how to tweak Monodevelop to write the project files Visual Studio wants to read or disable the conversion agent or converting silently in the background.

And please no complaints about the tool chain ;) It must be like that.

解决方案

I have been used to such issues for a long time. My rule of thumb is to make all project level changes (that will modify csproj files) in Visual Studio, while file level changes can be made in both MonoDevelop and Visual Studio without a problem.

It seems that MonoDevelop does not make use of MSBuild script in a way compatible to Visual Studio.

You may try out its latest build, but I don't think it will change much in a short period of time.

这篇关于使用单声道2.2.1和Visual Studio 2010的同时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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