简体   繁体   English

Azure门户上的.NET Core 2

[英].NET Core 2 on azure portal

Is there a setting on the azure portal to run .NET Core 2? 在Azure门户上是否有运行.NET Core 2的设置? I migrated our code base to run on .NET Core 2 from .NET Core 1.1.4. 我将代码库从.NET Core 1.1.4迁移到了.NET Core 2上。 However, on the portal, I only see options to select .NET Framework v3.5 and v4.7 但是,在门户网站上,我仅看到选择.NET Framework v3.5和v4.7的选项。

Command: "D:\\home\\site\\deployments\\tools\\deploy.cmd" Handling ASP.NET Core Web Application deployment. 命令:“ D:\\ home \\ site \\ deployments \\ tools \\ deploy.cmd”处理ASP.NET Core Web应用程序部署。 D:\\Program Files (x86)\\dotnet\\sdk\\2.1.300-rc1-008673\\Sdks\\Microsoft.NET.Sdk\\targets\\Microsoft.NET.ObsoleteReferences.targets(33,5): warning : Using DotNetCliToolReference to reference 'Microsoft.EntityFrameworkCore.Tools.DotNet' is obsolete and can be removed from this project. D:\\ Program Files(x86)\\ dotnet \\ sdk \\ 2.1.300-rc1-008673 \\ Sdks \\ Microsoft.NET.Sdk \\ targets \\ Microsoft.NET.ObsoleteReferences.targets(33,5):警告:使用DotNetCliToolReference进行引用'Microsoft.EntityFrameworkCore.Tools.DotNet'已过时,可以从此项目中删除。 This tool is bundled by default in the .NET Core SDK. 默认情况下,此工具捆绑在.NET Core SDK中。 [D:\\local\\repository\\TFA\\TFA.csproj] D:\\Program Files (x86)\\dotnet\\sdk\\2.1.300-rc1-008673\\Sdks\\Microsoft.NET.Sdk\\targets\\Microsoft.NET.ObsoleteReferences.targets(33,5): warning : Using DotNetCliToolReference to reference 'Microsoft.Extensions.SecretManager.Tools' is obsolete and can be removed from this project. [D:\\ local \\ repository \\ TFA \\ TFA.csproj] D:\\ Program Files(x86)\\ dotnet \\ sdk \\ 2.1.300-rc1-008673 \\ Sdks \\ Microsoft.NET.Sdk \\ targets \\ Microsoft.NET.ObsoleteReferences .targets(33,5):警告:使用DotNetCliToolReference引用'Microsoft.Extensions.SecretManager.Tools'已过时,可以从此项目中删除。 This tool is bundled by default in the .NET Core SDK. 默认情况下,此工具捆绑在.NET Core SDK中。 [D:\\local\\repository\\TFA\\TFA.csproj] Restore completed in 763.12 ms for D:\\local\\repository\\TFA\\TFA.csproj. [D:\\ local \\ repository \\ TFA \\ TFA.csproj] D:\\ local \\ repository \\ TFA \\ TFA.csproj的还原在763.12毫秒内完成。 Restoring packages for D:\\local\\repository\\TFTests\\TFTests.csproj... D:\\local\\repository\\TFTests\\TFTests.csproj : warning NU1603: Faker.NETCore 1.0.1 depends on NETStandard.Library (>= 1.4.0) but NETStandard.Library 1.4.0 was not found. 正在还原D:\\ local \\ repository \\ TFTests \\ TFTests.csproj ...的软件包D:\\ local \\ repository \\ TFTests \\ TFTests.csproj:警告NU1603:Faker.NETCore 1.0.1取决于NETStandard.Library(> = 1.4。 0),但未找到NETStandard.Library 1.4.0。 An approximate best match of NETStandard.Library 1.6.0 was resolved. 解决了NETStandard.Library 1.6.0的最佳匹配问题。 [D:\\local\\repository\\TF.sln] D:\\local\\repository\\TFTests\\TFTests.csproj : error NU1201: Project TFA is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). [D:\\ local \\ repository \\ TF.sln] D:\\ local \\ repository \\ TFTests \\ TFTests.csproj:错误NU1201:Project TFA与netcoreapp1.1(.NETCoreApp,Version = v1.1)不兼容。 Project TFA supports: netcoreapp2.0 (.NETCoreApp,Version=v2.0) [D:\\local\\repository\\TF.sln] Restore failed in 6.14 sec for D:\\local\\repository\\TFTests\\TFTests.csproj. Project TFA支持:netcoreapp2.0(.NETCoreApp,Version = v2.0)[D:\\ local \\ repository \\ TF.sln] D:\\ local \\ repository \\ TFTests \\ TFTests.csproj的还原在6.14秒内失败。 Restore completed in 113.64 ms for D:\\local\\repository\\TFA\\TFA.csproj. D:\\ local \\ repository \\ TFA \\ TFA.csproj的还原已在113.64毫秒内完成。 Failed exitCode=1, command=dotnet restore "D:\\local\\repository\\TF.sln" An error has occurred during web site deployment. 失败的exitCode = 1,命令= dotnet restore“ D:\\ local \\ repository \\ TF.sln”网站部署期间发生错误。 \\r\\nD:\\Program Files (x86)\\SiteExtensions\\Kudu\\73.10510.3399\\bin\\Scripts\\starter.cmd "D:\\home\\site\\deployments\\tools\\deploy.cmd" \\ r \\ nD:\\ Program Files(x86)\\ SiteExtensions \\ Kudu \\ 73.10510.3399 \\ bin \\ Scripts \\ starter.cmd“ D:\\ home \\ site \\ deployments \\ tools \\ deploy.cmd”

I found another stackOverflow post that says I have to delete my wwwroot directory before deploying due some possible net1.1 lingering files. 我发现了另一个stackOverflow帖子,其中说我由于某些可能的net1.1延迟文件而必须在部署之前删除wwwroot目录。 I'm going to try that next 我接下来要尝试

EDIT: The deployment seems to be failing because of Faker.NETCore . 编辑:由于Faker.NETCore ,部署似乎失败了。 However, I have no idea what this is. 但是,我不知道这是什么。 It's not being used anywhere in our app. 我们的应用程序中没有任何地方使用它。 Is this a lingering library from .NET Core 1.1 这是来自.NET Core 1.1的持久库吗

I found the issue. 我发现了问题。 It was my testSuite failing. 这是我的testSuite失败。 I had to bring that up to 2.0 as well. 我也必须将其提高到2.0。 I'm not sure if delete the deployment cache in tools through the kudo console or wiping out my wwwroot folder helped. 我不确定是否可以通过工藤控制台删除工具中的部署缓存或清除wwwroot文件夹是否有所帮助。 But I also did that because of other posts. 但由于其他职位,我也这样做了。

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

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