简体   繁体   English

在Azure Cloud Service中启用.NET 3.5功能

[英]Enable .NET 3.5 Features in Azure Cloud Service

I have an application built using .NET Framework 4.5 deployed in Azure Cloud Service. 我有一个使用Azure Cloud Service中部署的.NET Framework 4.5构建的应用程序。 So I use Windows Server 2012 OS Family ( supports .NET 4.0 and higher ). 所以我使用Windows Server 2012 OS系列( 支持.NET 4.0及更高版本 )。 My application is referencing a tool that can only be run with .NET 3.5 features enabled. 我的应用程序引用的工具只能在启用.NET 3.5功能的情况下运行。 So I login into the remote desktop and enable .NET 3.5 features. 所以我登录到远程桌面并启用.NET 3.5功能。

I read this article Windows Azure Execution Models stating that "a Cloud Services application shouldn't maintain state in the file system of its own VMs. Unlike VMs created with Windows Azure Virtual Machines, writes made to Cloud Services VMs aren't persistent;" 我读到这篇文章Windows Azure执行模型,指出“云服务应用程序不应该在其自己的VM的文件系统中维护状态。与使用Windows Azure虚拟机创建的虚拟机不同,对云服务虚拟机的写入不是持久的;”

Do you think my changes in the server (enabling .NET 3.5 features) is not ideal? 您认为我在服务器中的更改(启用.NET 3.5功能)不理想吗? If yes, can you suggest of a way on how can I deploy a .NET 4.5 web application with .NET 3.5 feature dependency. 如果是,您是否可以建议如何部署具有.NET 3.5功能依赖性的.NET 4.5 Web应用程序。

Do you think my changes in the server (enabling .NET 3.5 features) is not ideal? 您认为我在服务器中的更改(启用.NET 3.5功能)不理想吗?

Yes if you're doing it manually via RDPing into the server. 如果您通过RDP进入服务器手动执行此操作,请单击是。 Because if for some reason your VM goes bad and Microsoft replaces that VM with another VM, your changes will be lost. 因为如果由于某种原因您的VM出现故障并且Microsoft将该VM替换为另一个VM,您的更改将会丢失。

can you suggest of a way on how can I deploy a .NET 4.5 web application with .NET 3.5 feature dependency. 您能否介绍一下如何部署具有.NET 3.5功能依赖性的.NET 4.5 Web应用程序?

Do take a look at Startup Tasks to install additional dependencies. 请查看Startup Tasks以安装其他依赖项。 They get executed when your role starts so you could enable the features (or do any software installs before the role starts). 它们在您的角色启动时执行,因此您可以启用这些功能(或在角色启动之前执行任何软件安装)。 I haven't tried enabling the features personally (so I may be wrong) but take a look at this blog post which talks about installing these features through PowerShell or Command Line: http://blogs.msdn.com/b/sql_shep/archive/2012/08/01/windows-2012-and-net-3-5-feature-install.aspx 我没有尝试过亲自启用这些功能(所以我可能错了),但请看一下这篇博文,其中讨论了如何通过PowerShell或命令行安装这些功能: http//blogs.msdn.com/b/sql_shep/存档/ 2012/08/01 / Windows的2012年和净3-5功能install.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM