Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 10, 2025

Plan: Refactor Add-Debug-Profile to use local emitter builds ✅

Overview

The Add-Debug-Profile script has been successfully refactored to use the RegenPreview workflow for building local emitters, ensuring that local changes are reflected in the debug profile.

Changes Completed ✅

Recent Updates

Explicit NuGet Restore Fix

  • Added explicit dotnet restore step before building Azure and Mgmt generators
  • Uses --force --no-cache flags to ensure fresh package discovery
  • Specifies --configfile parameter to ensure local NuGet source is used
  • This prevents NU1102 errors where the build's implicit restore couldn't find packages
  • The issue was that dotnet build does implicit restore, but it wasn't finding the packages even though they were in the local source

Previous Fixes

  • NuGet package cleanup and cache clearing
  • Output capture fixes for PowerShell pipeline
  • Null reference error fixes in npm pack parsing
  • Parameter validation improvements
  • Windows path length workarounds
  • Early tsp-location.yaml validation

Summary of Changes

1. Removed tsp-client Dependencies

  • ✅ Complete removal of tsp-client workflow

2. Added RegenPreview Integration

  • ✅ Reuses all RegenPreview functions with enhanced validation

3. New Workflow Implementation

  • ✅ Build-LocalUnbrandedEmitter with robust error handling
  • ✅ Build-LocalNuGetPackages with cleanup and verification
  • ✅ Explicit NuGet restore before Azure/Mgmt generator builds
  • ✅ Automatic artifact restoration
  • ✅ All error handling and validation in place

4. Documentation

  • ✅ Comprehensive Add-Debug-Profile.md

Key Improvements

  1. Local Changes Reflected: Debug profile uses locally built emitters
  2. Consistency: Same build approach as RegenPreview.ps1
  3. Automatic Cleanup: All artifacts restored after completion
  4. Better Error Handling: Comprehensive validation and clear error messages
  5. No Global Dependencies: No npm package installation required
  6. Fail Fast: Early validation before expensive operations
  7. Windows Compatibility: Path length workarounds
  8. Robust Parsing: Null-safe npm pack output parsing
  9. Proper Output Handling: No pipeline capture issues
  10. NuGet Package Management: Cleanup, verification, and explicit restore
  11. Explicit Restore: Forces NuGet to discover packages before build

Files Modified

  • packages/http-client-csharp/eng/scripts/Add-Debug-Profile.ps1 - Complete refactor
  • packages/http-client-csharp/eng/scripts/RegenPreview.psm1 - Bug fixes

Files Added

  • packages/http-client-csharp/eng/scripts/docs/Add-Debug-Profile.md - Documentation
Original prompt

This section details on the original issue you should resolve

<issue_title>Add-Debug-Profile needs to handle new emitter changes</issue_title>
<issue_description>Add-Debug-Profile uses tsp-client to bootstrap the tspCodeModel. This ends up using whatever version of the emitter is specified in the tsp-location.yaml. We should attempt to use the local unbranded emitter so that any local changes are reflected in the tspCodeModel. We should probably use the same approach as the RegenPreview script and possibly just use the code defined there to instead build a local unbranded emitter, then update the azure-sdk-for-net artifacts to reference that local build. Then build a local Azure emitter and update the artifacts to reference that. I think the majority of Add-Debug-Profile impl can be deleted and we can reuse RegenPreview to accomplish the same thing. The end result should be that we have a local tspCodeModel/modified launchSettings that can be used for debugging. The changed artifacts can be git restored after the script completes.</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Update Add-Debug-Profile to handle new emitter changes Refactor Add-Debug-Profile to use local emitter builds instead of tsp-client Nov 10, 2025
Copilot AI requested a review from JoshLove-msft November 10, 2025 21:35
Copilot finished work on behalf of JoshLove-msft November 10, 2025 21:35
Write-Host "Local package version: $localVersion" -ForegroundColor Yellow
Write-Host ""

# Step 1: Build local unbranded emitter
Copy link
Contributor

Choose a reason for hiding this comment

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

@copilot lets attempt to parse the tsp-location.yaml first for Azure libraries before building the local emitter so that we can fail fast if unable to parse.

Copy link
Contributor

Choose a reason for hiding this comment

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

@copilot

ckages\http-client-csharp\generator\artifacts\bin\Parameters.Path\Debug\net8.0\Parameters.Path.dll Copying output to dist path Authentication.Http.Custom -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Authentication.Http.Custom\Debug\net8.0\Authentication.Http.Custom.dll Payload.ContentNegotiation -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Payload.ContentNegotiation\Debug\net8.0\Payload.ContentNegotiation.dll Encode.Bytes -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Encode.Bytes\Debug\net8.0\Encode.Bytes.dll Encode.Datetime -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Encode.Datetime\Debug\net8.0\Encode.Datetime.dll Client.Structure.Service.TwoOperationGroup -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Client.Structure.Service.TwoOperationGroup\Debug\net8.0\Client.Structure.Service.TwoOperationGroup.dll Parameters.Spread -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Parameters.Spread\Debug\net8.0\Parameters.Spread.dll Type.Enum.Fixed -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Type.Enum.Fixed\Debug\net8.0\Type.Enum.Fixed.dll Client.Structure.Service -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Client.Structure.Service\Debug\net8.0\Client.Structure.Service.dll Type.Enum.Extensible -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Type.Enum.Extensible\Debug\net8.0\Type.Enum.Extensible.dll Parameters.BodyOptionality -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Parameters.BodyOptionality\Debug\net8.0\Parameters.BodyOptionality.dll Encode.Numeric -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Encode.Numeric\Debug\net8.0\Encode.Numeric.dll Authentication.OAuth2 -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Authentication.OAuth2\Debug\net8.0\Authentication.OAuth2.dll Encode.Duration -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Encode.Duration\Debug\net8.0\Encode.Duration.dll
Client.Structure.Service.Multi.Client -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Client.Structure.Service.Multi.Client\Debug\net8.0\Client.Structure.Service.Multi.Client.dll Server.Versions.NotVersioned -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Server.Versions.NotVersioned\Debug\net8.0\Server.Versions.NotVersioned.dll Client.Structure.Service.Default -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Client.Structure.Service.Default\Debug\net8.0\Client.Structure.Service.Default.dll Server.Path.Multiple -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Server.Path.Multiple\Debug\net8.0\Server.Path.Multiple.dll Type.Dictionary -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Type.Dictionary\Debug\net8.0\Type.Dictionary.dll SpecialHeaders.Repeatability -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\SpecialHeaders.Repeatability\Debug\net8.0\SpecialHeaders.Repeatability.dll Server.Versions.Versioned -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Server.Versions.Versioned\Debug\net8.0\Server.Versions.Versioned.dll Response.StatusCodeRange -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Response.StatusCodeRange\Debug\net8.0\Response.StatusCodeRange.dll Parameters.Basic -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Parameters.Basic\Debug\net8.0\Parameters.Basic.dll Payload.JsonMergePatch -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Payload.JsonMergePatch\Debug\net8.0\Payload.JsonMergePatch.dll Authentication.Union -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Authentication.Union\Debug\net8.0\Authentication.Union.dll
Server.Path.Single -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Server.Path.Single\Debug\net8.0\Server.Path.Single.dll Type.Model.Inheritance.EnumDiscriminator -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Type.Model.Inheritance.EnumDiscriminator\Debug\net8.0\Type.Model.Inheritance.EnumDiscriminator.dll Server.Endpoint.NotDefined -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Server.Endpoint.NotDefined\Debug\net8.0\Server.Endpoint.NotDefined.dll Type.Array -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Type.Array\Debug\net8.0\Type.Array.dll Payload.Pageable -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Payload.Pageable\Debug\net8.0\Payload.Pageable.dll Versioning.Added.V1 -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Versioning.Added.V1\Debug\net8.0\Versioning.Added.V1.dll Resiliency.SrvDriven.V1 -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Resiliency.SrvDriven.V1\Debug\net8.0\Resiliency.SrvDriven.V1.dll Type.Model.Inheritance.SingleDiscriminator -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Type.Model.Inheritance.SingleDiscriminator\Debug\net8.0\Type.Model.Inheritance.SingleDiscriminator.dll Payload.MediaType -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Payload.MediaType\Debug\net8.0\Payload.MediaType.dll SpecialHeaders.ConditionalRequest -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\SpecialHeaders.ConditionalRequest\Debug\net8.0\SpecialHeaders.ConditionalRequest.dll
Client.Structure.Service.Renamed.Operation -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Client.Structure.Service.Renamed.Operation\Debug\net8.0\Client.Structure.Service.Renamed.Operation.dll Routes -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Routes\Debug\net8.0\Routes.dll
Versioning.Added.V2 -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Versioning.Added.V2\Debug\net8.0\Versioning.Added.V2.dll Versioning.ReturnTypeChangedFrom.V2 -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Versioning.ReturnTypeChangedFrom.V2\Debug\net8.0\Versioning.ReturnTypeChangedFrom.V2.dll Serialization.EncodedName.Json -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Serialization.EncodedName.Json\Debug\net8.0\Serialization.EncodedName.Json.dll Versioning.MadeOptional.V1 -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Versioning.MadeOptional.V1\Debug\net8.0\Versioning.MadeOptional.V1.dll SpecialWords -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\SpecialWords\Debug\net8.0\SpecialWords.dll
Type.Model.Usage -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Type.Model.Usage\Debug\net8.0\Type.Model.Usage.dll Microsoft.TypeSpec.Generator.Input.Tests -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Microsoft.TypeSpec.Generator.Input.Tests\Debug\net9.0\Microsoft.TypeSpec.Generator.Input.Tests.dll Type.Property.Nullable -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Type.Property.Nullable\Debug\net8.0\Type.Property.Nullable.dll Type.Model.Inheritance.Recursive -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Type.Model.Inheritance.Recursive\Debug\net8.0\Type.Model.Inheritance.Recursive.dll Resiliency.SrvDriven.V2 -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Resiliency.SrvDriven.V2\Debug\net8.0\Resiliency.SrvDriven.V2.dll Type.Property.ValueTypes -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Type.Property.ValueTypes\Debug\net8.0\Type.Property.ValueTypes.dll Versioning.Removed.V1 -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Versioning.Removed.V1\Debug\net8.0\Versioning.Removed.V1.dll Versioning.Removed.V2Preview -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Versioning.Removed.V2Preview\Debug\net8.0\Versioning.Removed.V2Preview.dll Versioning.MadeOptional.V2 -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Versioning.MadeOptional.V2\Debug\net8.0\Versioning.MadeOptional.V2.dll Type.Model.Empty -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Type.Model.Empty\Debug\net8.0\Type.Model.Empty.dll Versioning.ReturnTypeChangedFrom.V1 -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Versioning.ReturnTypeChangedFrom.V1\Debug\net8.0\Versioning.ReturnTypeChangedFrom.V1.dll Versioning.Removed.V2 -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Versioning.Removed.V2\Debug\net8.0\Versioning.Removed.V2.dll Microsoft.TypeSpec.Generator.Tests -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Microsoft.TypeSpec.Generator.Tests\Debug\net9.0\Microsoft.TypeSpec.Generator.Tests.dll Payload.MultiPart -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Payload.MultiPart\Debug\net8.0\Payload.MultiPart.dll Type.Property.Optional -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Type.Property.Optional\Debug\net8.0\Type.Property.Optional.dll Versioning.RenamedFrom.V1 -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Versioning.RenamedFrom.V1\Debug\net8.0\Versioning.RenamedFrom.V1.dll Microsoft.TypeSpec.Generator.ClientModel.StubLibrary -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Microsoft.TypeSpec.Generator.ClientModel.StubLibrary\Debug\net9.0\Microsoft.TypeSpec.Generator.ClientModel.StubLibrary.dll Copying output to dist path Type.Scalar -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Type.Scalar\Debug\net8.0\Type.Scalar.dll Type.Model.Visibility -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Type.Model.Visibility\Debug\net8.0\Type.Model.Visibility.dll Type.Model.Inheritance.NestedDiscriminator -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Type.Model.Inheritance.NestedDiscriminator\Debug\net8.0\Type.Model.Inheritance.NestedDiscriminator.dll Versioning.RenamedFrom.V2 -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Versioning.RenamedFrom.V2\Debug\net8.0\Versioning.RenamedFrom.V2.dll Type.Union -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Type.Union\Debug\net8.0\Type.Union.dll Versioning.TypeChangedFrom.V2 -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Versioning.TypeChangedFrom.V2\Debug\net8.0\Versioning.TypeChangedFrom.V2.dll Authentication.ApiKey -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Authentication.ApiKey\Debug\net8.0\Authentication.ApiKey.dll Type.Property.AdditionalProperties -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Type.Property.AdditionalProperties\Debug\net8.0\Type.Property.AdditionalProperties.dll Type.Model.Inheritance.NotDiscriminated -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Type.Model.Inheritance.NotDiscriminated\Debug\net8.0\Type.Model.Inheritance.NotDiscriminated.dll Versioning.TypeChangedFrom.V1 -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Versioning.TypeChangedFrom.V1\Debug\net8.0\Versioning.TypeChangedFrom.V1.dll Microsoft.TypeSpec.Generator.ClientModel.Tests -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Microsoft.TypeSpec.Generator.ClientModel.Tests\Debug\net9.0\Microsoft.TypeSpec.Generator.ClientModel.Tests.dll Microsoft.TypeSpec.Generator.Tests.Perf -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\Microsoft.TypeSpec.Generator.Tests.Perf\Debug\net9.0\Microsoft.TypeSpec.Generator.Tests.Perf.dll TestProjects.Spector.Tests -> C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\TestProjects.Spector.Tests\Debug\net9.0\TestProjects.Spector.Tests.dll Build succeeded. 0 Warning(s) 0 Error(s) Time Elapsed 00:00:11.38 > @typespec/[email protected] extract-api > npx api-extractor run --local --verbose api-extractor 7.52.9 - https://api-extractor.com/
Using configuration from ./api-extractor.json Analysis will use the bundled TypeScript version 5.8.2 Writing: C:\Users\jolov\repos\typespec\packages\http-client-csharp\emitter\temp\typespec-http-client-csharp.api.json Generating complete API report: C:\Users\jolov\repos\typespec\packages\http-client-csharp\emitter\temp\typespec-http-client-csharp.api.md The API report is up to date: temp/typespec-http-client-csharp.api.md Writing package typings: C:\Users\jolov\repos\typespec\packages\http-client-csharp\dist\typespec-http-client-csharp.d.ts API Extractor completed successfully C:\Users\jolov\repos\typespec\packages\http-client-csharp\debug\20251110\typespec-http-client-csharp-1.0.0-alpha.20251110.c354f7f74.tgz"" --package-lock-only
Write-Error: Error: Program 'cmd.exe' failed to run: An error occurred trying to start process 'C:\WINDOWS\system32\cmd.exe' with working directory 'C:\Users\jolov\repos\azure-sdk-for-net\eng\temp-package-update'. The filename or extension is too long.At C:\Users\jolov\repos\typespec\packages\http-client-csharp\eng\scripts\Generation.psm1:14 char:13

  •         cmd /c "$command 2>&1"
    

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in d173472. The script now parses and validates tsp-location.yaml immediately after detecting Azure SDK mode (before building any emitters), ensuring we fail fast if the configuration cannot be parsed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 025ee39. The script now copies .tgz files to the temp directory and uses relative paths in npm install commands to avoid Windows path length limits. Also updated the Invoke function to preserve line breaks in output for better readability.

- Copy .tgz files to temp directory and use relative paths to avoid Windows path length limits
- Update Invoke function to capture and write output line-by-line to preserve formatting

Co-authored-by: JoshLove-msft <[email protected]>
Copilot finished work on behalf of JoshLove-msft November 10, 2025 23:59
@JoshLove-msft
Copy link
Contributor

@copilot Build completed
Packaging generator...

npm pack
npm notice
npm notice package: @azure-typespec/[email protected]
npm notice Tarball Contents
npm notice 4.4kB README.md
npm notice 230B dist/emitter/src/emitter.d.ts
npm notice 269B dist/emitter/src/emitter.d.ts.map
npm notice 1.6kB dist/emitter/src/emitter.js
npm notice 1.2kB dist/emitter/src/emitter.js.map
npm notice 191B dist/emitter/src/index.d.ts
npm notice 253B dist/emitter/src/index.d.ts.map
npm notice 325B dist/emitter/src/index.js
npm notice 266B dist/emitter/src/index.js.map
npm notice 196B dist/emitter/src/lib/lib.d.ts
npm notice 153B dist/emitter/src/lib/lib.d.ts.map
npm notice 924B dist/emitter/src/lib/lib.js
npm notice 594B dist/emitter/src/lib/lib.js.map
npm notice 371B dist/emitter/src/options.d.ts
npm notice 370B dist/emitter/src/options.d.ts.map
npm notice 955B dist/emitter/src/options.js
npm notice 529B dist/emitter/src/options.js.map
npm notice 437.3kB dist/generator/Azure.Core.dll
npm notice 41.0kB dist/generator/Azure.Generator.deps.json
npm notice 191.0kB dist/generator/Azure.Generator.dll
npm notice 74.4kB dist/generator/Azure.Generator.pdb
npm notice 41.7kB dist/generator/Azure.Generator.StubLibrary.deps.json
npm notice 10.2kB dist/generator/Azure.Generator.StubLibrary.dll
npm notice 14.8kB dist/generator/Azure.Generator.StubLibrary.pdb
npm notice 900B dist/generator/Azure.Generator.StubLibrary.xml
npm notice 66.3kB dist/generator/Azure.Generator.xml
npm notice 1.4MB dist/generator/Azure.ResourceManager.dll
npm notice 225.3kB dist/generator/CommandLine.dll
npm notice 421.6kB dist/generator/cs/Microsoft.CodeAnalysis.CSharp.resources.dll
npm notice 18.1kB dist/generator/cs/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
npm notice 46.8kB dist/generator/cs/Microsoft.CodeAnalysis.resources.dll
npm notice 48.3kB dist/generator/cs/Microsoft.CodeAnalysis.Workspaces.resources.dll
npm notice 450.2kB dist/generator/de/Microsoft.CodeAnalysis.CSharp.resources.dll
npm notice 18.1kB dist/generator/de/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
npm notice 48.3kB dist/generator/de/Microsoft.CodeAnalysis.resources.dll
npm notice 49.8kB dist/generator/de/Microsoft.CodeAnalysis.Workspaces.resources.dll
npm notice 440.5kB dist/generator/es/Microsoft.CodeAnalysis.CSharp.resources.dll
npm notice 18.1kB dist/generator/es/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
npm notice 48.3kB dist/generator/es/Microsoft.CodeAnalysis.resources.dll
npm notice 49.8kB dist/generator/es/Microsoft.CodeAnalysis.Workspaces.resources.dll
npm notice 451.2kB dist/generator/fr/Microsoft.CodeAnalysis.CSharp.resources.dll
npm notice 18.2kB dist/generator/fr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
npm notice 48.8kB dist/generator/fr/Microsoft.CodeAnalysis.resources.dll
npm notice 50.8kB dist/generator/fr/Microsoft.CodeAnalysis.Workspaces.resources.dll
npm notice 355.9kB dist/generator/Humanizer.dll
npm notice 447.2kB dist/generator/it/Microsoft.CodeAnalysis.CSharp.resources.dll
npm notice 18.1kB dist/generator/it/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
npm notice 48.8kB dist/generator/it/Microsoft.CodeAnalysis.resources.dll
npm notice 50.3kB dist/generator/it/Microsoft.CodeAnalysis.Workspaces.resources.dll
npm notice 492.7kB dist/generator/ja/Microsoft.CodeAnalysis.CSharp.resources.dll
npm notice 18.1kB dist/generator/ja/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
npm notice 51.9kB dist/generator/ja/Microsoft.CodeAnalysis.resources.dll
npm notice 53.4kB dist/generator/ja/Microsoft.CodeAnalysis.Workspaces.resources.dll
npm notice 452.3kB dist/generator/ko/Microsoft.CodeAnalysis.CSharp.resources.dll
npm notice 18.2kB dist/generator/ko/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
npm notice 48.8kB dist/generator/ko/Microsoft.CodeAnalysis.resources.dll
npm notice 50.3kB dist/generator/ko/Microsoft.CodeAnalysis.Workspaces.resources.dll
npm notice 19.1kB dist/generator/Microsoft.Bcl.AsyncInterfaces.dll
npm notice 1.9MB dist/generator/Microsoft.Build.dll
npm notice 307.0kB dist/generator/Microsoft.Build.Framework.dll
npm notice 6.5MB dist/generator/Microsoft.CodeAnalysis.CSharp.dll
npm notice 883.5kB dist/generator/Microsoft.CodeAnalysis.CSharp.Workspaces.dll
npm notice 2.9MB dist/generator/Microsoft.CodeAnalysis.dll
npm notice 3.9MB dist/generator/Microsoft.CodeAnalysis.Workspaces.dll
npm notice 63.8kB dist/generator/Microsoft.Extensions.DependencyInjection.Abstractions.dll
npm notice 65.3kB dist/generator/Microsoft.Extensions.Logging.Abstractions.dll
npm notice 30.4kB dist/generator/Microsoft.NET.StringTools.dll
npm notice 276.5kB dist/generator/Microsoft.TypeSpec.Generator.ClientModel.dll
npm notice 543.2kB dist/generator/Microsoft.TypeSpec.Generator.dll
npm notice 131.6kB dist/generator/Microsoft.TypeSpec.Generator.Input.dll
npm notice 268B dist/generator/Microsoft.TypeSpec.Generator.runtimeconfig.json
npm notice 437.3kB dist/generator/net9.0/Azure.Core.dll
npm notice 41.0kB dist/generator/net9.0/Azure.Generator.deps.json
npm notice 191.0kB dist/generator/net9.0/Azure.Generator.dll
npm notice 74.4kB dist/generator/net9.0/Azure.Generator.pdb
npm notice 41.7kB dist/generator/net9.0/Azure.Generator.StubLibrary.deps.json
npm notice 10.2kB dist/generator/net9.0/Azure.Generator.StubLibrary.dll
npm notice 14.8kB dist/generator/net9.0/Azure.Generator.StubLibrary.pdb
npm notice 900B dist/generator/net9.0/Azure.Generator.StubLibrary.xml
npm notice 66.3kB dist/generator/net9.0/Azure.Generator.xml
npm notice 1.4MB dist/generator/net9.0/Azure.ResourceManager.dll
npm notice 225.3kB dist/generator/net9.0/CommandLine.dll
npm notice 421.6kB dist/generator/net9.0/cs/Microsoft.CodeAnalysis.CSharp.resources.dll
npm notice 18.1kB dist/generator/net9.0/cs/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
npm notice 46.8kB dist/generator/net9.0/cs/Microsoft.CodeAnalysis.resources.dll
npm notice 48.3kB dist/generator/net9.0/cs/Microsoft.CodeAnalysis.Workspaces.resources.dll
npm notice 450.2kB dist/generator/net9.0/de/Microsoft.CodeAnalysis.CSharp.resources.dll
npm notice 18.1kB dist/generator/net9.0/de/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
npm notice 48.3kB dist/generator/net9.0/de/Microsoft.CodeAnalysis.resources.dll
npm notice 49.8kB dist/generator/net9.0/de/Microsoft.CodeAnalysis.Workspaces.resources.dll
npm notice 440.5kB dist/generator/net9.0/es/Microsoft.CodeAnalysis.CSharp.resources.dll
npm notice 18.1kB dist/generator/net9.0/es/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
npm notice 48.3kB dist/generator/net9.0/es/Microsoft.CodeAnalysis.resources.dll
npm notice 49.8kB dist/generator/net9.0/es/Microsoft.CodeAnalysis.Workspaces.resources.dll
npm notice 451.2kB dist/generator/net9.0/fr/Microsoft.CodeAnalysis.CSharp.resources.dll
npm notice 18.2kB dist/generator/net9.0/fr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
npm notice 48.8kB dist/generator/net9.0/fr/Microsoft.CodeAnalysis.resources.dll
npm notice 50.8kB dist/generator/net9.0/fr/Microsoft.CodeAnalysis.Workspaces.resources.dll
npm notice 355.9kB dist/generator/net9.0/Humanizer.dll
npm notice 447.2kB dist/generator/net9.0/it/Microsoft.CodeAnalysis.CSharp.resources.dll
npm notice 18.1kB dist/generator/net9.0/it/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
npm notice 48.8kB dist/generator/net9.0/it/Microsoft.CodeAnalysis.resources.dll
npm notice 50.3kB dist/generator/net9.0/it/Microsoft.CodeAnalysis.Workspaces.resources.dll
npm notice 492.7kB dist/generator/net9.0/ja/Microsoft.CodeAnalysis.CSharp.resources.dll
npm notice 18.1kB dist/generator/net9.0/ja/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
npm notice 51.9kB dist/generator/net9.0/ja/Microsoft.CodeAnalysis.resources.dll
npm notice 53.4kB dist/generator/net9.0/ja/Microsoft.CodeAnalysis.Workspaces.resources.dll
npm notice 452.3kB dist/generator/net9.0/ko/Microsoft.CodeAnalysis.CSharp.resources.dll
npm notice 18.2kB dist/generator/net9.0/ko/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
npm notice 48.8kB dist/generator/net9.0/ko/Microsoft.CodeAnalysis.resources.dll
npm notice 50.3kB dist/generator/net9.0/ko/Microsoft.CodeAnalysis.Workspaces.resources.dll
npm notice 19.1kB dist/generator/net9.0/Microsoft.Bcl.AsyncInterfaces.dll
npm notice 1.9MB dist/generator/net9.0/Microsoft.Build.dll
npm notice 307.0kB dist/generator/net9.0/Microsoft.Build.Framework.dll
npm notice 6.5MB dist/generator/net9.0/Microsoft.CodeAnalysis.CSharp.dll
npm notice 883.5kB dist/generator/net9.0/Microsoft.CodeAnalysis.CSharp.Workspaces.dll
npm notice 2.9MB dist/generator/net9.0/Microsoft.CodeAnalysis.dll
npm notice 3.9MB dist/generator/net9.0/Microsoft.CodeAnalysis.Workspaces.dll
npm notice 63.8kB dist/generator/net9.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll
npm notice 65.3kB dist/generator/net9.0/Microsoft.Extensions.Logging.Abstractions.dll
npm notice 30.4kB dist/generator/net9.0/Microsoft.NET.StringTools.dll
npm notice 276.5kB dist/generator/net9.0/Microsoft.TypeSpec.Generator.ClientModel.dll
npm notice 543.2kB dist/generator/net9.0/Microsoft.TypeSpec.Generator.dll
npm notice 131.6kB dist/generator/net9.0/Microsoft.TypeSpec.Generator.Input.dll
npm notice 712.5kB dist/generator/net9.0/Newtonsoft.Json.dll
npm notice 110.1kB dist/generator/net9.0/NuGet.Common.dll
npm notice 175.7kB dist/generator/net9.0/NuGet.Configuration.dll
npm notice 125.5kB dist/generator/net9.0/NuGet.Frameworks.dll
npm notice 706.6kB dist/generator/net9.0/NuGet.Packaging.dll
npm notice 794.6kB dist/generator/net9.0/NuGet.Protocol.dll
npm notice 64.6kB dist/generator/net9.0/NuGet.Versioning.dll
npm notice 453.3kB dist/generator/net9.0/pl/Microsoft.CodeAnalysis.CSharp.resources.dll
npm notice 18.2kB dist/generator/net9.0/pl/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
npm notice 48.8kB dist/generator/net9.0/pl/Microsoft.CodeAnalysis.resources.dll
npm notice 49.8kB dist/generator/net9.0/pl/Microsoft.CodeAnalysis.Workspaces.resources.dll
npm notice 432.8kB dist/generator/net9.0/pt-BR/Microsoft.CodeAnalysis.CSharp.resources.dll
npm notice 18.1kB dist/generator/net9.0/pt-BR/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
npm notice 47.3kB dist/generator/net9.0/pt-BR/Microsoft.CodeAnalysis.resources.dll
npm notice 49.3kB dist/generator/net9.0/pt-BR/Microsoft.CodeAnalysis.Workspaces.resources.dll
npm notice 595.1kB dist/generator/net9.0/ru/Microsoft.CodeAnalysis.CSharp.resources.dll
npm notice 18.7kB dist/generator/net9.0/ru/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
npm notice 58.5kB dist/generator/net9.0/ru/Microsoft.CodeAnalysis.resources.dll
npm notice 57.5kB dist/generator/net9.0/ru/Microsoft.CodeAnalysis.Workspaces.resources.dll
npm notice 292.5kB dist/generator/net9.0/runtimes/win/lib/net6.0/System.Security.Cryptography.Pkcs.dll
npm notice 171.8kB dist/generator/net9.0/runtimes/win/lib/net8.0/System.Diagnostics.EventLog.dll
npm notice 801.0kB dist/generator/net9.0/runtimes/win/lib/net8.0/System.Diagnostics.EventLog.Messages.dll
npm notice 1.7kB dist/generator/net9.0/Shared/Core/AppContextSwitchHelper.cs
npm notice 9.0kB dist/generator/net9.0/Shared/Core/AsyncLockWithValue.cs
npm notice 1.9kB dist/generator/net9.0/Shared/Core/AzureKeyCredentialPolicy.cs
npm notice 4.0kB dist/generator/net9.0/Shared/Core/ClientDiagnostics.cs
npm notice 19.8kB dist/generator/net9.0/Shared/Core/DiagnosticScope.cs
npm notice 4.8kB dist/generator/net9.0/Shared/Core/DiagnosticScopeFactory.cs
npm notice 914B dist/generator/net9.0/Shared/Core/FixedDelayWithNoJitterStrategy.cs
npm notice 6.3kB dist/generator/net9.0/Shared/Core/HttpMessageSanitizer.cs
npm notice 4.5kB dist/generator/net9.0/Shared/Core/HttpPipelineExtensions.cs
npm notice 408B dist/generator/net9.0/Shared/Core/IOperationSource.cs
npm notice 30.8kB dist/generator/net9.0/Shared/Core/NextLinkOperationImplementation.cs
npm notice 317B dist/generator/net9.0/Shared/Core/OperationFinalStateVia.cs
npm notice 14.2kB dist/generator/net9.0/Shared/Core/OperationInternal.cs
npm notice 14.6kB dist/generator/net9.0/Shared/Core/OperationInternalBase.cs
npm notice 24.6kB dist/generator/net9.0/Shared/Core/OperationInternalOfT.cs
npm notice 5.3kB dist/generator/net9.0/Shared/Core/OperationPoller.cs
npm notice 3.4kB dist/generator/net9.0/Shared/Core/ProtocolOperation.cs
npm notice 10.2kB dist/generator/net9.0/Shared/Core/ProtocolOperationHelpers.cs
npm notice 9.8kB dist/generator/net9.0/Shared/Core/RawRequestUriBuilder.cs
npm notice 4.8kB dist/generator/net9.0/Shared/Core/RequestHeaderExtensions.cs
npm notice 13.7kB dist/generator/net9.0/Shared/Core/TaskExtensions.cs
npm notice 5.9kB dist/generator/net9.0/Shared/Core/TypeFormatters.cs
npm notice 204B dist/generator/net9.0/Shared/Core/VoidValue.cs
npm notice 232.5kB dist/generator/net9.0/System.ClientModel.dll
npm notice 294.2kB dist/generator/net9.0/System.ComponentModel.Composition.dll
npm notice 20.1kB dist/generator/net9.0/System.Composition.AttributedModel.dll
npm notice 53.9kB dist/generator/net9.0/System.Composition.Convention.dll
npm notice 55.4kB dist/generator/net9.0/System.Composition.Hosting.dll
npm notice 26.2kB dist/generator/net9.0/System.Composition.Runtime.dll
npm notice 65.2kB dist/generator/net9.0/System.Composition.TypedParts.dll
npm notice 442.6kB dist/generator/net9.0/System.Configuration.ConfigurationManager.dll
npm notice 51.9kB dist/generator/net9.0/System.Diagnostics.EventLog.dll
npm notice 30.5kB dist/generator/net9.0/System.Memory.Data.dll
npm notice 253.1kB dist/generator/net9.0/System.Reflection.MetadataLoadContext.dll
npm notice 250.5kB dist/generator/net9.0/System.Security.Cryptography.Pkcs.dll
npm notice 36.6kB dist/generator/net9.0/System.Security.Cryptography.ProtectedData.dll
npm notice 429.2kB dist/generator/net9.0/tr/Microsoft.CodeAnalysis.CSharp.resources.dll
npm notice 18.2kB dist/generator/net9.0/tr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
npm notice 46.8kB dist/generator/net9.0/tr/Microsoft.CodeAnalysis.resources.dll
npm notice 48.3kB dist/generator/net9.0/tr/Microsoft.CodeAnalysis.Workspaces.resources.dll
npm notice 382.1kB dist/generator/net9.0/zh-Hans/Microsoft.CodeAnalysis.CSharp.resources.dll
npm notice 18.1kB dist/generator/net9.0/zh-Hans/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
npm notice 43.7kB dist/generator/net9.0/zh-Hans/Microsoft.CodeAnalysis.resources.dll
npm notice 46.2kB dist/generator/net9.0/zh-Hans/Microsoft.CodeAnalysis.Workspaces.resources.dll
npm notice 381.6kB dist/generator/net9.0/zh-Hant/Microsoft.CodeAnalysis.CSharp.resources.dll
npm notice 18.2kB dist/generator/net9.0/zh-Hant/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
npm notice 44.2kB dist/generator/net9.0/zh-Hant/Microsoft.CodeAnalysis.resources.dll
npm notice 46.3kB dist/generator/net9.0/zh-Hant/Microsoft.CodeAnalysis.Workspaces.resources.dll
npm notice 712.5kB dist/generator/Newtonsoft.Json.dll
npm notice 110.1kB dist/generator/NuGet.Common.dll
npm notice 175.7kB dist/generator/NuGet.Configuration.dll
npm notice 125.5kB dist/generator/NuGet.Frameworks.dll
npm notice 706.6kB dist/generator/NuGet.Packaging.dll
npm notice 794.6kB dist/generator/NuGet.Protocol.dll
npm notice 64.6kB dist/generator/NuGet.Versioning.dll
npm notice 453.3kB dist/generator/pl/Microsoft.CodeAnalysis.CSharp.resources.dll
npm notice 18.2kB dist/generator/pl/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
npm notice 48.8kB dist/generator/pl/Microsoft.CodeAnalysis.resources.dll
npm notice 49.8kB dist/generator/pl/Microsoft.CodeAnalysis.Workspaces.resources.dll
npm notice 432.8kB dist/generator/pt-BR/Microsoft.CodeAnalysis.CSharp.resources.dll
npm notice 18.1kB dist/generator/pt-BR/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
npm notice 47.3kB dist/generator/pt-BR/Microsoft.CodeAnalysis.resources.dll
npm notice 49.3kB dist/generator/pt-BR/Microsoft.CodeAnalysis.Workspaces.resources.dll
npm notice 595.1kB dist/generator/ru/Microsoft.CodeAnalysis.CSharp.resources.dll
npm notice 18.7kB dist/generator/ru/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
npm notice 58.5kB dist/generator/ru/Microsoft.CodeAnalysis.resources.dll
npm notice 57.5kB dist/generator/ru/Microsoft.CodeAnalysis.Workspaces.resources.dll
npm notice 292.5kB dist/generator/runtimes/win/lib/net6.0/System.Security.Cryptography.Pkcs.dll
npm notice 171.8kB dist/generator/runtimes/win/lib/net8.0/System.Diagnostics.EventLog.dll
npm notice 801.0kB dist/generator/runtimes/win/lib/net8.0/System.Diagnostics.EventLog.Messages.dll
npm notice 1.7kB dist/generator/Shared/Core/AppContextSwitchHelper.cs
npm notice 9.0kB dist/generator/Shared/Core/AsyncLockWithValue.cs
npm notice 1.9kB dist/generator/Shared/Core/AzureKeyCredentialPolicy.cs
npm notice 4.0kB dist/generator/Shared/Core/ClientDiagnostics.cs
npm notice 19.8kB dist/generator/Shared/Core/DiagnosticScope.cs
npm notice 4.8kB dist/generator/Shared/Core/DiagnosticScopeFactory.cs
npm notice 914B dist/generator/Shared/Core/FixedDelayWithNoJitterStrategy.cs
npm notice 6.3kB dist/generator/Shared/Core/HttpMessageSanitizer.cs
npm notice 4.5kB dist/generator/Shared/Core/HttpPipelineExtensions.cs
npm notice 408B dist/generator/Shared/Core/IOperationSource.cs
npm notice 30.8kB dist/generator/Shared/Core/NextLinkOperationImplementation.cs
npm notice 317B dist/generator/Shared/Core/OperationFinalStateVia.cs
npm notice 14.2kB dist/generator/Shared/Core/OperationInternal.cs
npm notice 14.6kB dist/generator/Shared/Core/OperationInternalBase.cs
npm notice 24.6kB dist/generator/Shared/Core/OperationInternalOfT.cs
npm notice 5.3kB dist/generator/Shared/Core/OperationPoller.cs
npm notice 3.4kB dist/generator/Shared/Core/ProtocolOperation.cs
npm notice 10.2kB dist/generator/Shared/Core/ProtocolOperationHelpers.cs
npm notice 9.8kB dist/generator/Shared/Core/RawRequestUriBuilder.cs
npm notice 4.8kB dist/generator/Shared/Core/RequestHeaderExtensions.cs
npm notice 13.7kB dist/generator/Shared/Core/TaskExtensions.cs
npm notice 5.9kB dist/generator/Shared/Core/TypeFormatters.cs
npm notice 204B dist/generator/Shared/Core/VoidValue.cs
npm notice 232.5kB dist/generator/System.ClientModel.dll
npm notice 294.2kB dist/generator/System.ComponentModel.Composition.dll
npm notice 20.1kB dist/generator/System.Composition.AttributedModel.dll
npm notice 53.9kB dist/generator/System.Composition.Convention.dll
npm notice 55.4kB dist/generator/System.Composition.Hosting.dll
npm notice 26.2kB dist/generator/System.Composition.Runtime.dll
npm notice 65.2kB dist/generator/System.Composition.TypedParts.dll
npm notice 442.6kB dist/generator/System.Configuration.ConfigurationManager.dll
npm notice 51.9kB dist/generator/System.Diagnostics.EventLog.dll
npm notice 30.5kB dist/generator/System.Memory.Data.dll
npm notice 253.1kB dist/generator/System.Reflection.MetadataLoadContext.dll
npm notice 250.5kB dist/generator/System.Security.Cryptography.Pkcs.dll
npm notice 36.6kB dist/generator/System.Security.Cryptography.ProtectedData.dll
npm notice 429.2kB dist/generator/tr/Microsoft.CodeAnalysis.CSharp.resources.dll
npm notice 18.2kB dist/generator/tr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
npm notice 46.8kB dist/generator/tr/Microsoft.CodeAnalysis.resources.dll
npm notice 48.3kB dist/generator/tr/Microsoft.CodeAnalysis.Workspaces.resources.dll
npm notice 382.1kB dist/generator/zh-Hans/Microsoft.CodeAnalysis.CSharp.resources.dll
npm notice 18.1kB dist/generator/zh-Hans/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
npm notice 43.7kB dist/generator/zh-Hans/Microsoft.CodeAnalysis.resources.dll
npm notice 46.2kB dist/generator/zh-Hans/Microsoft.CodeAnalysis.Workspaces.resources.dll
npm notice 381.6kB dist/generator/zh-Hant/Microsoft.CodeAnalysis.CSharp.resources.dll
npm notice 18.2kB dist/generator/zh-Hant/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
npm notice 44.2kB dist/generator/zh-Hant/Microsoft.CodeAnalysis.resources.dll
npm notice 46.3kB dist/generator/zh-Hant/Microsoft.CodeAnalysis.Workspaces.resources.dll
npm notice 3.4kB package.json
npm notice Tarball Details
npm notice name: @azure-typespec/http-client-csharp
npm notice version: 1.0.0-alpha.20251110.025ee39d6
npm notice filename: azure-typespec-http-client-csharp-1.0.0-alpha.20251110.025ee39d6.tgz
npm notice package size: 23.0 MB
npm notice unpacked size: 67.4 MB
npm notice shasum: b7758a35c4555e443013225896fbda615e5e0176
npm notice integrity: sha512-UgbdwLaMJICFN[...]xZ2c+FXlmwcUg==
npm notice total files: 265
npm notice
azure-typespec-http-client-csharp-1.0.0-alpha.20251110.025ee39d6.tgz
Write-Error: Error: You cannot call a method on a null-valued expression.

@JoshLove-msft
Copy link
Contributor

@copilot Write-Error: Error: You cannot call a method on a null-valued expression.

- Replace ForEach-Object with foreach loop to avoid null reference errors
- Add null check for individual lines before writing output
- Check both for null and empty array to handle all edge cases

Co-authored-by: JoshLove-msft <[email protected]>
Copy link
Contributor Author

Copilot AI commented Nov 11, 2025

@copilot Write-Error: Error: You cannot call a method on a null-valued expression.

Fixed in fd4d75b. Replaced the ForEach-Object pipeline with a foreach loop and added explicit null checks to handle edge cases where command output is null or empty.

Copilot finished work on behalf of JoshLove-msft November 11, 2025 00:38
@JoshLove-msft
Copy link
Contributor

@copilot Same error:

azure-typespec-http-client-csharp-1.0.0-alpha.20251110.fd4d75b38.tgz
Write-Error: Error: You cannot call a method on a null-valued expression

…array

- Use @() to wrap output and ensure it's always treated as an array
- Use .Length instead of .Count for array length checking
- This fixes the error when command output is a single string instead of an array

Co-authored-by: JoshLove-msft <[email protected]>
Copy link
Contributor Author

Copilot AI commented Nov 11, 2025

@copilot Same error:

azure-typespec-http-client-csharp-1.0.0-alpha.20251110.fd4d75b38.tgz...

Fixed in a6a1cb2. The issue was that .Count doesn't exist on string objects in PowerShell. When command output is a single line, it's a string rather than an array. Now using @() to ensure output is always treated as an array and .Length property for reliable array length checking.

Copilot finished work on behalf of JoshLove-msft November 11, 2025 00:49
Copilot AI and others added 2 commits November 11, 2025 00:57
- The error was in RegenPreview.psm1, not Generation.psm1
- When Where-Object returns no matches, calling .ToString() on null causes the error
- Added null check before calling .ToString() and .Trim()
- Fallback to constructing filename from package.json if parsing fails

Co-authored-by: JoshLove-msft <[email protected]>
The null reference error was actually in RegenPreview.psm1, not Generation.psm1.
Reverting Generation.psm1 to its original state before the output formatting changes.

Co-authored-by: JoshLove-msft <[email protected]>
Copy link
Contributor Author

Copilot AI commented Nov 11, 2025

@copilot Same error. Please validate that the fix works first - azure-typespec-http-client-csharp-1.0.0-alpha.20251110.a6a1cb218.tgz
Write-Error: Error: You cannot call a method on a null-valued expre...

Fixed in 674e4cd. The actual error was in RegenPreview.psm1 line 145 where npm pack output parsing calls .ToString() on a null result from Where-Object. Added null check and fallback logic. Also reverted unnecessary changes to Generation.psm1 in 9638386.

Copilot finished work on behalf of JoshLove-msft November 11, 2025 01:00
@JoshLove-msft
Copy link
Contributor

@copilot [3/5] Updating artifacts and building generators...
Updated UnbrandedGeneratorVersion to 1.0.0-alpha.20251110.96383862c
Adding local NuGet package source to NuGet.Config...
Added local NuGet source: local-codegen-debug-packages
Write-Error: Error: Cannot bind argument to parameter 'Path' because it is an empty string.

- Added checks for null/empty NuGetConfigPath and SourcePath parameters
- Added validation that SourcePath directory exists before processing
- Added final validation before calling Save() to provide clearer error messages
- This should help diagnose the "empty string" parameter binding error

Co-authored-by: JoshLove-msft <[email protected]>
Copy link
Contributor Author

Copilot AI commented Nov 11, 2025

@copilot [3/5] Updating artifacts and building generators...
Updated UnbrandedGeneratorVersion to 1.0.0-alpha.20251110.96383862c
Adding local NuGet package source to NuGet.Config......

Fixed in 1dc9fbe. Added validation for null/empty parameters in Add-LocalNuGetSource to diagnose the empty string error. The function now checks that NuGetConfigPath and SourcePath are not null/empty, validates the source directory exists, and performs final validation before saving. This should provide clearer error messages to identify the root cause.

Copilot finished work on behalf of JoshLove-msft November 11, 2025 01:07
@JoshLove-msft
Copy link
Contributor

@copilot [3/5] Updating artifacts and building generators...
Updated UnbrandedGeneratorVersion to 1.0.0-alpha.20251110.1dc9fbe37
Adding local NuGet package source to NuGet.Config...
Added local NuGet source: local-codegen-debug-packages
Write-Error: Error: Cannot bind argument to parameter 'Path' because it is an empty string.

- Same issue as in RegenPreview.psm1: calling .ToString() on null Where-Object result
- Added null check before calling .ToString() and .Trim()
- Added fallback to construct filename from package.json if parsing fails
- Added validation after Build-LocalUnbrandedEmitter to ensure valid package path returned
- Added check that package file exists before continuing
- This fixes the "Cannot bind argument to parameter 'Path' because it is an empty string" error on Split-Path

Co-authored-by: JoshLove-msft <[email protected]>
Copy link
Contributor Author

Copilot AI commented Nov 11, 2025

@copilot [3/5] Updating artifacts and building generators...
Updated UnbrandedGeneratorVersion to 1.0.0-alpha.20251110.1dc9fbe37
Adding local NuGet package source to NuGet.Config......

Fixed in 826c0ac. The same npm pack parsing issue existed in Add-Debug-Profile.ps1's Build-LocalUnbrandedEmitter function. When Where-Object returned null and .ToString() was called on it, the function returned an empty string, which then caused the Split-Path error. Added null checks, fallback logic, and validation to ensure a valid package path is returned.

Copilot finished work on behalf of JoshLove-msft November 11, 2025 01:18
}
```

## Comparison with Previous Version
Copy link
Contributor

Choose a reason for hiding this comment

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

@copilot we should remove this section as it is not relevant for long term use.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in 49fa853. Removed the "Comparison with Previous Version" section from the documentation.

The "Comparison with Previous Version" section is not relevant for long-term use and has been removed from the documentation.

Co-authored-by: JoshLove-msft <[email protected]>
Copilot finished work on behalf of JoshLove-msft November 11, 2025 17:09
Copilot AI requested a review from JoshLove-msft November 11, 2025 17:09
@JoshLove-msft
Copy link
Contributor

@copilot I debugged the issue and the problem is that the $unbrandedPackagePath variable is not what we expect.

Package path: added 578 packages, and audited 579 packages in 35s 132 packages are looking for funding run npm fund for details 4 vulnerabilities (3 low, 1 moderate) To address all issues, run: npm audit fix Run npm audit for details. > @typespec/[email protected] clean > rimraf ./dist ./emitter/temp && dotnet clean ./generator Build started 11/11/2025 9:04:14 AM. 1>Project "C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\Microsoft.TypeSpec.Generator.sln" on node 1 (Clean target(s)).
1>ValidateSolutionConfiguration: Building solution configuration "Debug|Any CPU". 1>Project "C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\Microsoft.TypeSpec.Generator.sln" (1) is building "C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\TestProjects\Spector.Tests\TestProjects.Spector.Tests.csproj" (2) on node 1 (Clean target(s)). 2>CoreClean: Deleting file "C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\TestProjects.Spector.Tests\Debug\net9.0\testhost.dll". Deleting file "C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\TestProjects.Spector.Tests\Debug\net9.0\Microsoft.TypeSpec.Generator.Tests.Common.deps.json". Deleting file "C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\TestProjects.Spector.Tests\Debug\net9.0\Microsoft.TypeSpec.Generator.Tests.Common.runtimeconfig.json". Deleting file "C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\TestProjects.Spector.Tests\Debug\net9.0\Microsoft.TypeSpec.Generator.deps.json". Deleting file "C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\TestProjects.Spector.Tests\Debug\net9.0\Microsoft.TypeSpec.Generator.runtimeconfig.json". Deleting file "C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\TestProjects.Spector.Tests\Debug\net9.0\Microsoft.TypeSpec.Generator.exe". Deleting file "C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\TestProjects.Spector.Tests\Debug\net9.0\testhost.exe". Deleting file "C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\TestProjects.Spector.Tests\Debug\net9.0\NUnit3.TestAdapter.dll". Deleting file "C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\TestProjects.Spector.Tests\Debug\net9.0\NUnit3.TestAdapter.pdb". Deleting file "C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\TestProjects.Spector.Tests\Debug\net9.0\nunit.engine.dll". Deleting file "C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\TestProjects.Spector.Tests\Debug\net9.0\nunit.engine.api.dll". Deleting file "C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\TestProjects.Spector.Tests\Debug\net9.0\nunit.engine.core.dll". Deleting file "C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\TestProjects.Spector.Tests\Debug\net9.0\testcentric.engine.metadata.dll". Deleting file "C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\TestProjects.Spector.Tests\Debug\net9.0\Http_Type\Model\Inheritance\SingleDiscriminator\TestData\Eagle\Eagle.json". Deleting file "C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\TestProjects.Spector.Tests\Debug\net9.0\Http_Type\Model\Inheritance\SingleDiscriminator\TestData\Eagle\EagleWire.json". Deleting file "C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\TestProjects.Spector.Tests\Debug\net9.0\Http_Type\Property\AdditionalProperties\TestData\DifferentSpreadStringDerived\Derived.json".
Deleting file "C:\Users\jolov\repos\typespec\packages\http-client-csharp\generator\artifacts\bin\TestProjects.Spector.Tests\Debug\net9.0\Http_Type\Property\AdditionalProperties\TestData\DifferentSpreadStringDerived\DerivedWire.json". Deleting f

…alNuGetPackages

- Added | Out-Host to Invoke calls to prevent command output from being captured as function return value
- PowerShell captures all pipeline output from functions, not just explicit return statements
- Without Out-Host, the $unbrandedPackagePath variable was getting all npm/dotnet output instead of just the package path
- This caused the "Package path:" output to show all build output instead of just the file path

Co-authored-by: JoshLove-msft <[email protected]>
Copy link
Contributor Author

Copilot AI commented Nov 11, 2025

@copilot I debugged the issue and the problem is that the $unbrandedPackagePath variable is not what we expect.

Package path: added 578 packages, and audited 579 packages in 35s 132 packages are lo...

Fixed in 138799d. The issue was that PowerShell captures all pipeline output from functions, not just explicit return statements. The Invoke function outputs command results to the pipeline, which was being captured along with the return value. Added | Out-Host to all Invoke calls in both functions to send output to the console instead of the pipeline, ensuring only the intended return value is captured.

Copilot finished work on behalf of JoshLove-msft November 11, 2025 17:31
@JoshLove-msft
Copy link
Contributor

@copilot Updated dependencies to local packages
Installing dependencies...
Cleaning build artifacts...

npm run clean
Building generator...
npm run build
Invoke: Command failed to execute: npm run build
@azure-typespec/[email protected] build > npm run build:emitter && npm run build:generator > @azure-typespec/[email protected] build:emitter > tsc -p ./emitter/tsconfig.build.json > @azure-typespec/[email protected] build:generator > dotnet build ./generator Determining projects to restore... C:\Users\jolov\repos\azure-sdk-for-net\eng\packages\http-client-csharp\generator\Azure.Generator\src\Azure.Generator.csproj : error NU1102: Unable to find package Microsoft.TypeSpec.Generator.ClientModel with version (= 1.0.0-alpha.20251111.138799de3) [C:\Users\jolov\repos\azure-sdk-for-net\eng\packages\http-client-csharp\generator\Azure.Generator.sln] C:\Users\jolov\repos\azure-sdk-for-net\eng\packages\http-client-csharp\generator\Azure.Generator\src\Azure.Generator.csproj : error NU1102: - Found 517 version(s) in azure-sdk-for-net [ Nearest version: 1.0.0-alpha.20251110.1 ] [C:\Users\jolov\repos\azure-sdk-for-net\eng\packages\http-client-csharp\generator\Azure.Generator.sln] C:\Users\jolov\repos\azure-sdk-for-net\eng\packages\http-client-csharp\generator\Azure.Generator\src\Azure.Generator.csproj : error NU1102: - Found 8 version(s) in local-codegen-debug-packages [ Nearest version: 1.0.0-alpha.20251110.fd4d75b38 ] [C:\Users\jolov\repos\azure-sdk-for-net\eng\packages\http-client-csharp\generator\Azure.Generator.sln] C:\Users\jolov\repos\azure-sdk-for-net\eng\packages\http-client-csharp\generator\Azure.Generator.StubLibrary\src\Azure.Generator.StubLibrary.csproj : error NU1102: Unable to find pack

- Added cleanup of old Microsoft.TypeSpec.Generator*.nupkg files from debug folder before packing new ones
- Added verification step to ensure all expected NuGet packages were created
- Added dotnet nuget locals http-cache --clear to force fresh package discovery
- This fixes the NU1102 error where NuGet couldn't find the newly built packages

Co-authored-by: JoshLove-msft <[email protected]>
Copy link
Contributor Author

Copilot AI commented Nov 11, 2025

@copilot Updated dependencies to local packages
Installing dependencies...
Cleaning build artifacts......

Fixed in 9e6d274. The issue was that old NuGet packages were present in the debug folder (from previous runs), and NuGet was finding those instead of the newly built ones. Added cleanup of old packages before packing, package verification after packing, and dotnet nuget locals http-cache --clear to force NuGet to discover the fresh packages.

- Added pre-restore step with --force --no-cache flags before building Azure and Mgmt generators
- This ensures NuGet packages are properly discovered before the build attempts to restore them
- Uses explicit --configfile parameter to ensure the local NuGet source is used
- Fixes NU1102 error where generator builds couldn't find the newly built NuGet packages

Co-authored-by: JoshLove-msft <[email protected]>
Copilot finished work on behalf of JoshLove-msft November 11, 2025 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add-Debug-Profile needs to handle new emitter changes

2 participants