错误 MSB4025:无法加载项目文件.根级别的数据无效



我在OSX上使用Yeoman创建了一个新的dotnet core MVC应用程序。我做了dotnet restoredotnet publish。然后我把它推送到 Github,在 azure 我添加了 Github 存储库,这应该会自动将我的网站部署到 azure,但我看到这个错误

网信息

Product Information:
 Version:            1.0.0-preview2-1-003177
 Commit SHA-1 hash:  a2df9c2576
Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  10.12
 OS Platform: Darwin
 RID:         osx.10.12-x64

原木

Installing Microsoft.VisualBasic 10.0.1.
Installing System.ComponentModel.Annotations 4.1.0.
Restoring packages for tool 'Microsoft.AspNetCore.Razor.Tools' in D:homesiterepositoryproject.json...
Restoring packages for tool 'Microsoft.AspNetCore.Server.IISIntegration.Tools' in D:homesiterepositoryproject.json...
  GET https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.server.iisintegration.tools/index.json
  OK https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.server.iisintegration.tools/index.json 141ms
  GET https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.server.iisintegration.tools/1.1.0-preview4-final/microsoft.aspnetcore.server.iisintegration.tools.1.1.0-preview4-final.nupkg
  OK https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.server.iisintegration.tools/1.1.0-preview4-final/microsoft.aspnetcore.server.iisintegration.tools.1.1.0-preview4-final.nupkg 22ms
  GET https://api.nuget.org/v3-flatcontainer/microsoft.extensions.commandlineutils/1.1.0/microsoft.extensions.commandlineutils.1.1.0.nupkg
  OK https://api.nuget.org/v3-flatcontainer/microsoft.extensions.commandlineutils/1.1.0/microsoft.extensions.commandlineutils.1.1.0.nupkg 25ms
Installing Microsoft.Extensions.CommandLineUtils 1.1.0.
Installing Microsoft.AspNetCore.Server.IISIntegration.Tools 1.1.0-preview4-final.
Committing restore...
Writing lock file to disk. Path: D:homesiterepositoryproject.lock.json
D:homesiterepositoryproject.json
Restore completed in 240318ms.
NuGet Config files used:
    C:DWASFilesSites#1ivdstudiosAppDataNuGetNuGet.Config
Feeds used:
    https://api.nuget.org/v3/index.json
Installed:
    320 package(s) to D:homesiterepositoryproject.json
Microsoft (R) Build Engine version 15.1.545.13942
Copyright (C) Microsoft Corporation. All rights reserved.
D:homesiterepositoryproject.json(1,1): error MSB4025: The project file could not be loaded. Data at the root level is invalid. Line 1, position 1.
Failed exitCode=1, command=dotnet publish "project.json" --output "D:localTemp8d45033fdf16040" --configuration Release
An error has occurred during web site deployment.
rnD:Program Files (x86)SiteExtensionsKudu59.60207.2684binScriptsstarter.cmd "D:homesitedeploymentstoolsdeploy.cmd"

在项目的根目录中添加 global.json

{
  "sdk": {
    "version": "1.0.0-preview2-1-003177"
}}

最新更新