English 中文(简体)
C++/CLI, using.NET 2+ [duplicate]
原标题:C++/CLI using .NET 2+ [duplicate]
This question already has answers here:
Closed 11 years ago.

Possible Duplicate:
Change C++/CLI project to another framework than 4.0 with vs2010

I wrote a hello world app in C++/CLI and i compiled (with safe clr) and ran it under windows. No problem. I ran it under linux and i got this error

WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v1.1.4322

How do I compile C++/CLI so it will work for either .NET run time 2/3.5 or .NET 4? -edit- I found this answer why says mono 2.6 falls back (or reports?) version 1 when it comes across .NET 4 runtimes. Ok, so now i know this is a .NET 4 runtime but how do i compile it as .NET 2 or 3.5? I rather deal with .NET 4 than 1 so good :). But my server isnt setup for that ATM (monos VM image is tho which i am testing now with success)

最佳回答

“VC++ 2010年汇编者”只产生“NET 4.0组件”。

2008年VC++汇编者只产生2.0-3.5组件。

If you have VC++ 2008 installed, you can instruct Visual Studio 2010 to use the VC++ 2008 compiler which will create a .NET 2.0-3.5 assembly. Simply change the "Platform Toolset" setting under project properties to "v90".

“enterography

问题回答

暂无回答




相关问题
Autopaging or custom paging which is better in datagrid?

i used datagrid control in .net platform... but now i am in big confusion .. that is ..which is better to used custom or autopaging option.. gud explaination or example is needed.. i dont know ...

Gridview item preview using .net 2.0

I have a GridView control that for each item has a Hyperlinkfield with a URL to an aspx page. I want to (using AJAX libraries) to display the page preview in an inline window as the user hovers over ...

Rendering form to bitmap

I would like to render Form to bitmap... Is it possible in .net 2.0?

Transactions in .Net 2.0 application-- what to use?

I m working on a .Net 2.0 application and need to wrap some database transactions in my code. The backend is SQL Server 2008. I ve been away from .net for a few years, the last time I did any ...

Subsonic query: issue with the produced query

I m having a problem with subsonic query. The deal is, I have a view and I want to query it s data to produce something like the following SQL statement: select * from myView where (col1 like %a% ...

热门标签