Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

Upgrade to VS 2017 #320

Closed
wants to merge 3 commits into from
Closed

Upgrade to VS 2017 #320

wants to merge 3 commits into from

Conversation

natemcmaster
Copy link
Contributor

@natemcmaster natemcmaster commented Feb 1, 2017

WIP: still needs to be verified in VS 2017

cref aspnet/Universe#469

@natemcmaster
Copy link
Contributor Author

@ryanbrandenburg it looks like tests are failing. I think it's due to a temporary bug in vstest which runs the tests in the wrong working directory. microsoft/vstest#311 This can usually be worked around by using AppContext.BaseDirectory (netcoreapp) or AppDomain.CurrentDirectory.BaseDirectory (net451) to find test files

@@ -0,0 +1,23 @@
<Project>
<Import Project="..\version.props" />
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs $(MSBuildThisFileDirectory). Includes are always relative to the "entry" project file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not quite. Relative paths in imported projects are interpreted relative to the directory of the importing project.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...but, the relative path of Import Project is relative to the file in which its expressed.

Or so I've been led to believe. This works in all of our other repos

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird. I'm getting assembly version 1.0.0.0 without it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Building this repo? It seems to work for me

image

Copy link

@bricelam bricelam Feb 2, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this repo?

No, EF, but it's the same pattern.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, works in VS and command line. Something else must be going on since the import would fail if it couldn't find the file.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh, good point. 😄 Yuck. Not something I want to debug...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and may the force be with you

deploy: off
os: Visual Studio 2017 RC
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to do this in all our repos?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. The default image doesn't have .NET Framework 4.6, which is required for dotnet-test

<!-- TODO remove when https://github.com/dotnet/sdk/issues/396 is resolved -->
<RuntimeIdentifier Condition=" '$(TargetFramework)' != 'netcoreapp1.1' ">win7-x64</RuntimeIdentifier>
<OutputType>Exe</OutputType>
<!-- workaround issues with satellite assembly generation and -->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and signing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, that was the rest of the sentence. @ryanbrandenburg have you already opened a bug for this, or should I?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nvm, I verified this works on 1.0.0-rc4-004755. Will update the TODO here

@natemcmaster
Copy link
Contributor Author

superseded by #322

@natemcmaster natemcmaster deleted the namc/vs2017 branch May 24, 2017 18:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants