Skip to content

Shorten paths in VS installation#57726

Merged
davidwengier merged 1 commit intodotnet:release/dev17.1from
davidwengier:ShortenPaths
Dec 1, 2021
Merged

Shorten paths in VS installation#57726
davidwengier merged 1 commit intodotnet:release/dev17.1from
davidwengier:ShortenPaths

Conversation

@davidwengier
Copy link
Member

@davidwengier davidwengier commented Nov 12, 2021

Contributes to AB#1433021 but the final fix will be in the VS insertion

Will do a val build and insert it into https://devdiv.visualstudio.com/DevDiv/_git/VS/pullrequest/364093 for testing

@davidwengier
Copy link
Member Author

@davidwengier
Copy link
Member Author


<CommonExtensionInstallationRoot>CommonExtensions</CommonExtensionInstallationRoot>
<LanguageServicesExtensionInstallationFolder>Microsoft\ManagedLanguages\VBCSharp\LanguageServices</LanguageServicesExtensionInstallationFolder>
<LanguageServicesExtensionInstallationFolder>Microsoft\VBCSharp\LanguageServices</LanguageServicesExtensionInstallationFolder>
Copy link
Contributor

Choose a reason for hiding this comment

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

i'm curious why we don't just reduce this to Microsoft\VBCSharp. Is the LanguageServices part helpful?

Copy link
Member Author

Choose a reason for hiding this comment

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

Both LanguageServices and ExpressionEvaluator are extensions that have been extracted, so they have a few overlapping files, like manifest.json etc.

I did propose on an email thread shortening them to LS and EE, or we could do VBCSLanguageServices and VBCSExpressionEvaluator directly under the Microsoft folder. To be perfectly frank the "Microsoft" bit seems a little redundant even :)

@genlu
Copy link
Member

genlu commented Nov 12, 2021

@davidwengier Could you please validate our .Net 6 OOP still work with this change? Especially our dependent services (Test discovery, razor, etc.), which used to use relative path to Roslyn for assembly probing. It was removed a while ago, so our OOP services shouldn't be affected. But just in case :)

Copy link
Member

@jasonmalinowski jasonmalinowski left a comment

Choose a reason for hiding this comment

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

I can't wait to see what components have improperly taken dependencies on this!

@davidwengier
Copy link
Member Author

davidwengier commented Nov 15, 2021

Well looks like Razor is broken, though I don't know why. Using the .NET 6 OOP process doesn't seem to make it better or worse. Could be Windows Sandbox issues.. trying on my real machine instead, as was getting odd installer issues. Nope, Razor is definitely broken!

@RikkiGibson
Copy link
Member

This gets me wondering if win11 is changing any defaults around long paths.

@davidwengier
Copy link
Member Author

Update: The razor issue is https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1433840 so going to rebase the VS branch and try again.

@davidwengier
Copy link
Member Author

Razor works! 🎉

As does LUT, test discovery, with .NET 6 host and non. Seems normal to me :)

@genlu
Copy link
Member

genlu commented Nov 16, 2021

@davidwengier Thanks for the validation!

@davidwengier
Copy link
Member Author

This has passed manual testing :D

@genlu
Copy link
Member

genlu commented Nov 30, 2021

FYI @y87feng, who's fixing a similar issue and could make the same change for LUT and SBD.

@davidwengier
Copy link
Member Author

FYI @y87feng, who's fixing a similar issue and could make the same change for LUT and SBD.

Thanks @genlu we actually validated this change with LUT and SBD in the same VS branch :)

@davidwengier davidwengier changed the base branch from main to release/dev17.1 December 1, 2021 00:29
@davidwengier
Copy link
Member Author

davidwengier commented Dec 1, 2021

Changed to release/dev17.1. @jinujoseph for M2

@davidwengier davidwengier merged commit a575591 into dotnet:release/dev17.1 Dec 1, 2021
@davidwengier davidwengier deleted the ShortenPaths branch December 1, 2021 06:55
333fred added a commit to 333fred/roslyn that referenced this pull request Dec 3, 2021
…rovements

* upstream/main: (310 commits)
  Read SourceLink info and call service to retrieve source from there (dotnet#57978)
  Add new parser/lexer to the StackTraceAnalyzer (dotnet#57598) (dotnet#58050)
  Snap 17.1 P2 (dotnet#58041)
  Make it possible to analyze the dataflow of `ConstructorInitializerSyntax` and `PrimaryConstructorBaseTypeSyntax` (dotnet#57576)
  Shorten paths in VS installation (dotnet#57726)
  Add comments
  Add new parser/lexer to the StackTraceAnalyzer (dotnet#57598)
  Fix await completion for expression body lambda
  Add tests
  Fix comment
  Honor option, and also improve formatting with comment
  Skip TestLargeStringConcatenation (dotnet#58035)
  Log runtime framework of remote host
  Mark EqualityContract property accessor as not auto-implemented (dotnet#57917)
  Fix typo in XML doc for GeneratorExtensions (dotnet#58020)
  Hold Receiver directly in bound node for implicit indexer access (dotnet#58009)
  Pass AnalysisKind instead of int
  Enable nullable reference types for TableDataSource
  Simplify 'interpolation' data, and move to an easier to consume System.Range approach for it (dotnet#57966)
  Add missing test for CallerArgumentExpression (dotnet#57805)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants