适用于Windows 10的Multi-Target-Pack 4.0 [英] Multi-Target-Pack 4.0 for Windows 10

查看:79
本文介绍了适用于Windows 10的Multi-Target-Pack 4.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的软件正在编译需要在.NET 4.0 IoT设备上运行的.NET类。


开发人员PC需要安装.NET Framework Reference Assemblies 4.0。它们带有"Microsoft Windows SDK for Windows 7和.NET Framework 4"。适用于Windows 7。


对于Windows 10安装,无法使用此SDK。甚至提取MTPack /并安装包含的"netfx_dtp.msi"失败。 "Windows 10 SDK"不包含早于4.7的.NET Framework版本的参考程序集。


我知道的唯一方法是安装VisualStudio。它包含所需的参考装配体。


但是我的用户不想安装完整的VisualStudio,并且使用免费社区版可能会遇到许可问题。


并且:不,我不能切换到.NET核心,因为我的应用程序使用C ++& C ++ CLI。


有什么解决方案吗?


 


谢谢
    dsg-online


解决方案

你好dsg-online,


感谢您在此处发帖。


如果您想使用.net框架并且不想安装Visual Studio,则只能安装.net框架从以下链接。


https://www.microsoft.com/net/下载/框架


>> 并且:不,我不能切换到.NET核心,因为我的应用程序使用C ++& C ++ CLI。


据我所知,没有计划支持.Net Core的C ++ / CLI。有关详细信息,请参阅以下链接中的讨论。


https:/ /github.com/dotnet/coreclr/issues/659


但您可以尝试使用P / Invoke来调用C ++ DLL。 .Net核心支持。有关详细信息,请参阅以下链接。


https://docs.microsoft.com/en-us/dotnet/standard/native-interop


最诚挚的问候,


温迪


Hi,

my Software is compiling .NET classes that need to run on .NET 4.0 IoT devices.

Developer PCs need to install the .NET Framework Reference Assemblies 4.0. They come with "Microsoft Windows SDK for Windows 7 and .NET Framework 4". Works fine on Windows 7.

For Windows 10 installations this SDK cannot be used. Even extracting MTPack/ and installing the contained "netfx_dtp.msi" fails. The "Windows 10 SDK" does not contain the Reference Assemblies of .NET Framework versions earlier than 4.7.

The only way I know is to install VisualStudio. It contains the required Reference Assemblies.

But my users do not want to install the complete VisualStudio and may have trouble with the licenses using the free Community edition.

And: no I cannot switch to .NET core, since my application uses C++ & C++CLI.

Is there any solution?

 

Thanks
    dsg-online

解决方案

Hi dsg-online,

Thank you for posting here.

If you want to use .net framework and do not want to install the Visual Studio, you could only install .net framework from the following link.

https://www.microsoft.com/net/download/framework

>>And: no I cannot switch to .NET core, since my application uses C++ & C++CLI.

As I know, there is no plan to support C++/ CLI with .Net Core. For more details, you could refer to the discussion in following link.

https://github.com/dotnet/coreclr/issues/659

But you could try to use P/Invoke to call C++ dll. .Net Core support that. For more details, please refer to the following link.

https://docs.microsoft.com/en-us/dotnet/standard/native-interop

Best Regards,

Wendy


这篇关于适用于Windows 10的Multi-Target-Pack 4.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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