本文是小编为大家收集整理的关于Visual studio项目到MonoDevelop的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。
问题描述
有没有办法将Visual Studio项目转移到单体开发环境中?
at faq- faq- faq-
单体开发可以在MOPST的情况下直接打开,操纵和保存基于MSBUILD的项目.实际上,由于Monodevelop 2.0默认项目格式是VS2008风格的MSBUILD项目,但VS2005和VS1010格式也已处理. 但是,当我尝试打开我的( asp.net Web应用程序).
负载操作失败.项目不支持框架
'.netFrameWork,版本= V4.0'. 我应该更改项目设置,允许不同的 .netframework 版本,还是我必须使用某些第三方软件来翻译我的项目 config files? files?
编辑:(已解决)
如果您的项目还不那么大,请在Microsoft Visual Studio(MVS)中使用.NET Framework 3.5创建一个新项目它具有有关此项目的" 4.0"信息,加上.vbproj文件以前不起作用,并且可以执行相同的操作,请搜索4.0信息. (适用于框架4.0) 或 更改您的项目设置,如下所述:
http://msdn.microsoft.com/en-en-us/en-us/library/library/bb398202.aspx 您正在使用哪种版本的Monodevelop? Monodevelop 2.8可以打开.NET 4.0项目(我相信2.6也可以).实际上,在2.8 .NET 4.0中是所有新项目的默认值. Monodevelops的VB.Net Addin仍然不支持.NET 4.0.它适用于C#项目. 使用文本编辑器,更改您的 *.vbproj文件以添加以下行: 到第一个属性组,例如
推荐答案
其他推荐答案
其他推荐答案
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
...
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
</PropertyGroup>
问题描述
Is there a way to transfer a Visual Studio project to the MonoDevelop environment? at FAQ - MonoDevelop it is said that:
MonoDevelop can open, manipulate and save MSBuild-based projects directly in mopst cases. In fact, since MonoDevelop 2.0 the default project format has been VS2008-style MSBuild projects, but VS2005 and VS1010 formats are also handled.
But when I try to open my (ASP.NET Web Application) .vbproj in MonoDevelop, I get:
Load operation failed. Project does not support framework '.NETFramework,Version=v4.0'.
Should I alter project settings, allowing different .NETFramework version or do I have to use some 3rd party softwares to translate my projects config files?
EDIT:(Resolved) If your project is not that big yet, create a new project in your Microsoft Visual Studio(MVS) with .NET Framework 3.5 and then it will be possible to open it with MonoDevelop, else edit your projects Debug/Release config files and delete everything that has "4.0" information about this project, plus .vbproj file in are previous doesn't work and do the same, search for 4.0 information. (Applicable for framework 4.0)
OR
Change your project settings as it is described here: http://msdn.microsoft.com/en-us/library/bb398202.aspx
推荐答案
What version of MonoDevelop are you using? MonoDevelop 2.8 can open .NET 4.0 projects (I believe 2.6 can as well). In fact, in 2.8 .NET 4.0 is the default for all new projects.
其他推荐答案
MonoDevelop's VB.NET addin still doesn't support .NET 4.0. It would work for C# projects.
其他推荐答案
Using a text editor, change your *.vbproj file to add the following line:
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
to the first PropertyGroup, e.g.
<?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> ... <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> </PropertyGroup>