Use the $(UserProfile) MSBuild macro where possible#100
Use the $(UserProfile) MSBuild macro where possible#100AArnott wants to merge 1 commit intoNuGetArchive:devfrom
Conversation
The MSBuild [projectname].nuget.targets files should use this macro instead of a hard-coded path that includes the username so that the generated file can be shared by multiple users.
|
Hi @AArnott, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution! The agreement was validated by .NET Foundation and real humans are currently evaluating your PR. TTYL, DNFBOT; |
|
Please remove XML comments for private members Cool change! :ship it: When test is added @deepakaravindr please merge when completed |
|
Thanks for reviewing, @yishaigalatzer. As I said in the pull request description, I tried adding a test but couldn't figure out how to run them. Can you please explain how I can run them? |
|
Comment in the code. And I was hoping for a unit test not a functional test to make sure the paths resolve appropriately |
|
@yishaigalatzer Yes, I'm hoping for a unit test as well. But again, I fail to understand how to run the tests. How can your unit tests be run? And where would you like the code comment? Since you have a policy against commenting private members, and the only other line I touch is in the middle of a large expression. Personally, I'm in favor of documenting the private members, and would be happy to add an xml doc comment to the |
|
One relevant question perhaps is where do I get DNX? It seems your project.json file defines a "test" command, but in my VS 2015 Developer Prompt, "dnx" isn't a command. |
|
OK, so I finally found how to get DNX, and stumbled through till I figured out how to run the
|
|
@AArnott are you able to run build.cmd in NuGet3? It should handle building and running all tests for you. What version of DNX do you have installed? Paste the output from: dnx --version |
|
dnx --version
I just ran build.cmd. It took quite a while, and ended up failing with this (which looks like an internal bug in dnx.exe)
|
|
This is an xunit issue (or xunit/dnx combination issue). I've resolved it in the past by clearing out the %userprofile%.dnx\packages folder and removing all other sources apart from nuget.org. The error can happen when an incompatible version of xunit gets added to the global packages folder, normally through the aspnetvnext feed. |
|
The null ref looks like a version mismatch between xunit and the dnx being run. |
|
@AArnott are you able to make progress here? |
|
I haven't had more time to spend on this. Feel free to build on the product change I've done by adding tests yourself if you'd like. |
|
Ported with NuGet/NuGet.Client#31 |
The MSBuild [projectname].nuget.targets files should use this macro instead of a hard-coded path that includes the username so that the generated file can be shared by multiple users.
Fix NuGet/Home#1095
I tried to write a unit test for this, but tests don't show up in the Test Explorer and I couldn't find a text file in the source tree explaining how to run them.