English 中文(简体)
<RequiredTargetFramework>和<targetframeworkversion>之间有何区别?
原标题:Whats the difference between <RequiredTargetFramework> and <targetframeworkversion>?

我们把3.5个项目(c#)升级为4.0。 当你看看项目档案时,我试图从以下两个方面感觉到:

<RequiredTargetFramework>3.5</RequiredTargetFramework>
<TargetFrameworkVersion>4.0</TargetFrameworkVersion>

为什么有两个似乎具有不同价值观的类似方面?

最佳回答

<代码><RequiredTargetFramework> 内容已载于您的3.5个项目。 它与组装(<代码><Reference>有关,并且只在组装上0.NET2.0中无法提供的组件。

在MSDN中,我只字不提存货,我看不出批量建筑有多大作用。 在3.5个MSBuild .target档案中,也没有使用过。 我认为,当你们把《目标框架》改成一个比支持大会所需要的版本时,国际民主和选举援助学会就只是利用这一工具,把警示放在参考点的后面。

在项目档案中还有其他一些内容,对微型信贷服务公司没有影响,但在国际开发协会有影响。 同<代码><SubType> and <DependentUpon> in the <Compile> i。

问题回答

您是否发现这种联系? link text。 针对性强是轻而易举的,那就是,你可以改变项目特性,以说哪些框架可以借鉴。 该条指出,要求基准用于批量项目(但除了未使用批量外,还不清楚实际用途)。

参考项目按其要求分类。 这一目标的产出如下:

参考:3.5;3.5

参考:4.0

实际建筑很少使用定点清除。 任务分工更为常见。 详情见MSBuild Batching。





相关问题
Test "User Must Change Password" field in .Net 3.5

I m trying to perform some basic AD User managment tasks in C# using .Net 3.5 I ve got a System.DirectoryServices.AccountManagement.UserPrincipal object that contains the user details. I can call ...

Entity Framework - Many to many question

I have a table called ASB and a table called PeopleInvolved. There is a junction table called PeopleInvolved_ASB which simply contains an ASBID and a PeopleInvolvedID column. The columns act as a ...

WCF: DuplexChannelFactory timeout error

I m using a DuplexChannelFactory when accessing my WCF service so that my service can use a callBackChannel to communicate back to the client. That s all fine but I get a timeout error when creating ...

AutoResetEvent, ManualResetEvent vs Monitor

Lets say I have to orchestrate a synchronization algorithm in .Net 3.5 SP1 and any of the synchronization primitives listed in the title fit perfectly for the task. From a performance perspective, is ...

Managing multiple .Net-Frameworks on a webserver

So I m in charge to deploy my project on the productive server where some other ASP.NET-Websites are also set up. The problem now is that I wrote my whole project under .NET 3.5 but on the webserver ...

Unit Testing .NET 3.5 projects using MStest in VS2010

There s a bug/feature in Visual Studio 2010 where you can t create a unit test project with the 2.0 CLR. https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=483891&wa=...

热门标签