-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Set DeployExtension=false in BuildAndTest.proj... #6574
Conversation
BuildAndTest.cmd already sets this property. We should have the same behavior if you're performing the analogous operation in the "Open" submodule. Since we never run IDE tests as a part of BuildAndTest, it shouldn't matter that we don't deploy the extensions. Without this, "msbuild BuildAndTest.proj" doesn't work on clean VS install.
FYI @dotnet/roslyn-infrastructure |
I think it's best to just handle this in the "BuildAndTest" scripts for now (rather than pushing the logic deeper into our build .targets, because that would involve checking to see if the VS extensions folder contained Roslyn...presumably that logic would all have to change or go away once VsSdk starts preferring user local extensions over the ones installed in the VS extensions folder). |
👍 |
Does setting the property in this way override properties that are explicitly set in the csproj / vbproj files? The previous solution of specifying on the command line does, but I'm unsure if this method will. If it doesn't then we need to modify the use of |
So there are two answers here:
|
And I guess following up to #2: I can totally imagine if you're turning this off real quick until we get Update 1 out and then we'll fix this all up. But this isn't what we want, Eventually™. |
Bottom line is that, today, if you just install VS and don't uninstall the Roslyn msi, then "msbuild BuildAndTest.proj" generates errors. These errors are not at all informative to the uninitiated developer. I would propose that we do this until we're able to fix this up on top of Update 1 (unless anyone is really relying on "msbuild BuildAndTest.proj" deploying their extensions...which I doubt...). I assert that "everyone" is using "msbuild Roslyn.sln" to deploy extensions for testing. |
Any strong objections? Going once...going twice... |
Set DeployExtension=false in BuildAndTest.proj...
Revert "Merge pull request #6574 from KevinH-MS/master"
BuildAndTest.cmd already sets this property. We should have the same
behavior if you're performing the analogous operation in the "Open"
submodule. Since we never run IDE tests as a part of BuildAndTest, it
shouldn't matter that we don't deploy the extensions. Without this,
"msbuild BuildAndTest.proj" doesn't work on clean VS install.