Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docfx failing under AppVeyor #1380

Closed
jskeet opened this issue Aug 18, 2017 · 2 comments
Closed

Docfx failing under AppVeyor #1380

jskeet opened this issue Aug 18, 2017 · 2 comments
Assignees
Labels
priority: p0 Highest priority. Critical issue. P0 implies highest priority. type: process A process-related concern. May include testing, release, or the like.

Comments

@jskeet
Copy link
Collaborator

jskeet commented Aug 18, 2017

Now that AppVeyor has updated to .NET Core 2.0, docfx can't find the msbuild properties files.

00:32:10 Building docs for Google.Cloud.BigQuery.V2
[17-08-18 07:32:16.523]Warning:[ExtractMetadata]Workspace failed with: [Failure] Msbuild failed when processing the file 'C:\projects\google-cloud-dotnet\apis\Google.Cloud.BigQuery.V2\Google.Cloud.BigQuery.V2\Google.Cloud.BigQuery.V2.csproj' with message: The imported project "C:\projects\google-cloud-dotnet\packages\docfx.2.22.3\Sdks\Microsoft.NET.Sdk\Sdk\Sdk.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.  C:\projects\google-cloud-dotnet\apis\Google.Cloud.BigQuery.V2\Google.Cloud.BigQuery.V2\Google.Cloud.BigQuery.V2.csproj

This is our instance of this docfx issue which in turn comes from this msbuild issue. The suggested solution is to install VS2017 instead of just the build tools. Not easy on CI...

The good news is that I suspect the Sdk.props file is on disk somewhere, but we need to find it and set an appropriate environment variable.

@jskeet jskeet self-assigned this Aug 18, 2017
@jskeet jskeet added priority: p0 Highest priority. Critical issue. P0 implies highest priority. type: process A process-related concern. May include testing, release, or the like. labels Aug 18, 2017
@jskeet
Copy link
Collaborator Author

jskeet commented Aug 18, 2017

Setting MSBuildSDKsPath = "C:\Program Files\dotnet\sdk\1.0.4\Sdks" moves the problem on a bit:

[17-08-18 08:21:45.893]Warning:[ExtractMetadata]Workspace failed with: [Failure] Msbuild failed when processing the file 'C:\projects\google-cloud-dotnet\apis\Google.Cloud.BigQuery.V2\Google.Cloud.BigQuery.V2\Google.Cloud.BigQuery.V2.csproj' with message: The imported project "C:\Program Files (x86)\MSBuild\2.0\Microsoft.Common.props" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk. C:\Program Files\dotnet\sdk\1.0.4\Sdks\Microsoft.NET.Sdk\Sdk\Sdk.props

The fact that it's looking for MSBuild 2.0 is weird.
Trying to set more environment variables...

@jskeet
Copy link
Collaborator Author

jskeet commented Aug 22, 2017

Closing as we'll run it on Jenkins instead.

@jskeet jskeet closed this as completed Aug 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p0 Highest priority. Critical issue. P0 implies highest priority. type: process A process-related concern. May include testing, release, or the like.
Projects
None yet
Development

No branches or pull requests

1 participant