Skip to content

Commit e5a2356

Browse files
committed
Switch to public feed for roslyn server executables
1 parent 8db1de7 commit e5a2356

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ To run and develop the extension do the following:
1515
* Run `npm i`
1616
* Run `npm i -g gulp`
1717
* Run `gulp installDependencies` (this will download the various dependencies as specified by the version in the [package.json](package.json))
18-
* A common error you may run into is `NU1301: Unable to load the service index for source https://devdiv.pkgs.visualstudio.com/_packaging/VS/nuget/v3/index.json`.
19-
To resolve this error, try running `dotnet restore --interactive server/ /p:MicrosoftCodeAnalysisLanguageServerVersion=version_number` with `version_number` replaced with the version number found in [package.json](package.json) inside the `defaults` section under the `roslyn` key.
20-
If this does not work, install [azure artifacts nuget credential provider](https://github.com/microsoft/artifacts-credprovider#installation-on-windows) then rerun the previous command.
2118
* Open in Visual Studio Code (`code .`)
2219
* _Optional:_ run `npm run watch`, make code changes
2320
* Press <kbd>F5</kbd> to debug
@@ -41,7 +38,7 @@ VSIXs can be created using the gulp command `gulp vsix:release:package`. This w
4138
## Updating the Roslyn server version
4239

4340
To update the version of the roslyn server used by the extension do the following:
44-
1. Find the the Roslyn signed build you want from [here](https://dnceng.visualstudio.com/internal/_build?definitionId=327&branchFilter=246637%2C246637). Typically the latest successful build is fine.
41+
1. Find the the Roslyn signed build you want from [here](https://dnceng.visualstudio.com/internal/_build?definitionId=327&_a=summary). Typically the latest successful build of main is fine.
4542
2. In the official build stage, look for the `Publish Language Server Executables` step. In there you will see it publishing the `Microsoft.CodeAnalysis.LanguageServer` package with some version, e.g. `4.6.0-3.23158.4`. Take note of that version number.
4643
3. In the [package.json](package.json) inside the `defaults` section update the `roslyn` key to point to the version number you found above in step 2.
4744
4. Build and test the change (make sure to run `gulp installDependencies` to get the new version!). If everything looks good, submit a PR.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
}
3636
},
3737
"defaults": {
38-
"roslyn": "4.7.0-2.23276.6",
38+
"roslyn": "4.7.0-3.23312.11",
3939
"omniSharp": "1.39.6",
4040
"razor": "7.0.0-preview.23275.2"
4141
},

server/NuGet.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<configuration>
44
<packageSources>
55
<clear />
6-
<add key="VS" value="https://devdiv.pkgs.visualstudio.com/_packaging/VS/nuget/v3/index.json" />
6+
<add key="vs-impl" value="https://pkgs.dev.azure.com/azure-public/vside/_packaging/vs-impl/nuget/v3/index.json" />
77
<add key="dotnet-public" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" />
88
</packageSources>
99
<disabledPackageSources>

0 commit comments

Comments
 (0)