Skip to content

generate nuspecs in IntermediateOutputPath - #2871

Merged
matthid merged 1 commit into
fsprojects:masterfrom
johlrich:fix_2865
Oct 30, 2017
Merged

matthid merged 1 commit into
fsprojects:masterfrom
johlrich:fix_2865

Conversation

@johlrich

Copy link
Copy Markdown
Contributor

this is so they go in obj/Configuration/ instead of obj/

closes #2865

@forki

forki commented Oct 28, 2017

Copy link
Copy Markdown
Member

Pinging @matthid because I'm on vacation

@forki

forki commented Oct 29, 2017

Copy link
Copy Markdown
Member

@johlrich can you please take a look at the broken test in appveyor
(travis is expected to be red)

@johlrich

Copy link
Copy Markdown
Contributor Author

Looks like I didn't test with the IntermediateOutputPath variable enough. That one includes the configuration and the target framework in the path. I switched back to $(BaseIntermediateOutputPath)$(Configuration)/ and will keep an eye on the appveyor result.

@forki

forki commented Oct 29, 2017

Copy link
Copy Markdown
Member

Mhm still red?

@forki

forki commented Oct 29, 2017

Copy link
Copy Markdown
Member

Maybe the test is no good?

@johlrich

Copy link
Copy Markdown
Contributor Author

Hmmmmm the test passes locally after switching. The test also fails here without the changes complaining about no description, and when looking at the in the scenario temp folder I see the same situation as the issue: an extra blank nuspec at obj root. Not sure why it's passing now.

Strange that I'm getting the opposite results as appveyor. Not really sure of a good way to troubleshoot atm. @forki any ideas?

My only thought was to somehow capture the scenario temp folder from the appveyor build to take a closer look in both scenarios, but not sure how to do that tbh.

@forki

forki commented Oct 29, 2017 via email

Copy link
Copy Markdown
Member

@johlrich

Copy link
Copy Markdown
Contributor Author

@forki I think that's it. I isolated that one test and then ran it with DOTNET_EXE_PATH set to both the preview one that the build downloads (2.1.0-preview1-007002) and the one I have installed (2.0.2). The preview one fails, the install one passes.

Going to change to 2.0.2 so appveyor gets kicked off again with it to prove that out there. If that works then we'll have to see how you want to handle that. 🤞

@johlrich

johlrich commented Oct 29, 2017 •

Copy link
Copy Markdown
Contributor Author

More weirdness, the full build is currently churning through the integration tests on my machine with 2.0.2 but appveyor can't seem to get past restoring Paket.Core.preview3.

Edit: Build finished and all tests passed locally when using 2.0.2 + the RunIntegrationTests target

@forki

forki commented Oct 30, 2017 via email

Copy link
Copy Markdown
Member

nuspecs started appearing in obj/configuration/ with dotnetcli 2.0.2
@johlrich

Copy link
Copy Markdown
Contributor Author

Ok, it is now checking for existence in the new location and if it couldn't find it, falling back to the old location. Build finally green and worked with both cli versions here.

Not super familiar with MSBuild so let me know if there was a simpler way to do that since Exists doesn't seem to do wildcards

@matthid
matthid merged commit 8305ea9 into fsprojects:master Oct 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Paket.restore.targets creates nuspec in wrong folder

3 participants