Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/core-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
run: pnpm install

- name: Restore .NET dependencies
run: dotnet restore
run: dotnet restore --locked-mode
working-directory: packages/typespec-vs

- name: Build
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ packages/*/etc/

# csharp emitter
!packages/http-client-csharp/package-lock.json

# typespec-vs NuGet lock file for deterministic CI restores
!packages/typespec-vs/src/packages.lock.json
packages/http-client-csharp/generator/artifacts/
packages/http-client-csharp/debug/
packages/http-client-csharp/generated-defs/**/*.js
Expand Down
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ pnpm-lock.yaml
# Agentic workflow lock file
**/*.lock.yml

# NuGet lock file
**/*.lock.json

# Emu spec file, formatting is wrong
packages/spec/src/spec.emu.html

Expand Down
1 change: 1 addition & 0 deletions cspell.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ ignorePaths:
- packages/typespec-vscode/test/scenarios/**
- pnpm-lock.yaml
- "**/*.lock.yml"
- "**/*.lock.json"
- pnpm-workspace.yaml
- "**/dependabot.yml"
- "**/*.mp4"
Expand Down
2 changes: 1 addition & 1 deletion eng/tsp-core/pipelines/templates/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ steps:
retryCountOnTaskFailure: 3

- ${{ if parameters.useDotNet }}:
- script: dotnet restore
- script: dotnet restore --locked-mode
displayName: Restore .NET Dependencies
workingDirectory: packages/typespec-vs
5 changes: 3 additions & 2 deletions packages/typespec-vs/src/Microsoft.TypeSpec.VS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<!-- https://learn.microsoft.com/en-us/dotnet/core/compatibility/sdk/9.0/nugetaudit-transitive-packages -->
<NuGetAuditMode>all</NuGetAuditMode>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<!-- Official build will pass in the real version from package.json, see scripts/build.js -->
<Version>42.42.42</Version>
<!-- Only deploy extension when building inside Visual Studio-->
Expand Down Expand Up @@ -45,8 +46,8 @@
<ItemGroup>
<!-- Use 17.0.x or latest 16.x if no 17.0.x for compatible API-->
<PackageReference Include="Microsoft.VisualStudio.SDK" Version="17.14.40265" ExcludeAssets="Runtime" />
<PackageReference Include="Microsoft.VisualStudio.Workspace" Version="17.12.19" ExcludeAssets="Runtime" />
<PackageReference Include="Microsoft.VisualStudio.Workspace.VSIntegration" Version="17.12.19" ExcludeAssets="Runtime" />
<PackageReference Include="Microsoft.VisualStudio.Workspace" Version="17.12.19" ExcludeAssets="Runtime" NoWarn="NU1603" />
<PackageReference Include="Microsoft.VisualStudio.Workspace.VSIntegration" Version="17.12.19" ExcludeAssets="Runtime" NoWarn="NU1603" />
<!-- https://github.com/advisories/GHSA-w3q9-fxm7-j8fq -->
<PackageReference Include="Microsoft.Build" Version="17.14.28"/>
<PackageReference Include="Microsoft.VSSDK.BuildTools" Version="17.14.2120">
Expand Down
Loading
Loading