Visual studio project to MonoDevelop

笑着哭i 提交于 2019-12-30 08:08:17

问题


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


回答1:


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.




回答2:


MonoDevelop's VB.NET addin still doesn't support .NET 4.0. It would work for C# projects.




回答3:


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>



回答4:


.net framework 4.0 not yet completly implemented in mono but includes most of the features try to download latest version of mono and retry:)




回答5:


I had the same problem in version 3.0 of MonoDevelop. VBNET development have changed the runtime. NET Tools> Options> Runtimes. NET I have marked as default MONO 2.x



来源:https://stackoverflow.com/questions/8651449/visual-studio-project-to-monodevelop

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!