Skip to content

Commit

Permalink
Generate codgen attrs (#5820)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshLove-msft authored Jan 30, 2025
1 parent 6e35562 commit e81b3e6
Show file tree
Hide file tree
Showing 109 changed files with 627 additions and 315 deletions.
8 changes: 1 addition & 7 deletions packages/http-client-csharp/eng/scripts/Build-Packages.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ $emitterVersion = node -p -e "require('$packageRoot/package.json').version"
$mgcVersion = Get-CsprojVersion -csprojFilePath "$packageRoot/generator/Microsoft.Generator.CSharp/src/Microsoft.Generator.CSharp.csproj"
$mgcClientModelVersion = Get-CsprojVersion -csprojFilePath "$packageRoot/generator/Microsoft.Generator.CSharp.ClientModel/src/Microsoft.Generator.CSharp.ClientModel.csproj"
$mgcInputVersion = Get-CsprojVersion -csprojFilePath "$packageRoot/generator/Microsoft.Generator.CSharp.Input/src/Microsoft.Generator.CSharp.Input.csproj"
$mgcCustomizationVersion = Get-CsprojVersion -csprojFilePath "$packageRoot/generator/Microsoft.Generator.CSharp.Customization/src/Microsoft.Generator.CSharp.Customization.csproj"

if ($BuildNumber) {
# set package versions
Expand All @@ -100,10 +99,7 @@ if ($BuildNumber) {

$mgcInputVersion = "$mgcInputVersion$versionTag.$BuildNumber"
Set-VersionVariable -variableName "mgcInputVersion" -version $mgcInputVersion

$mgcCustomizationVersion = "$mgcCustomizationVersion$versionTag.$BuildNumber"
Set-VersionVariable -variableName "mgcCustomizationVersion" -version $mgcCustomizationVersion


$emitterVersion = "$emitterVersion$versionTag.$BuildNumber"
Set-VersionVariable -variableName "emitterVersion" -version $emitterVersion
}
Expand Down Expand Up @@ -147,7 +143,6 @@ try {
Pack-And-Write-Info -package "Microsoft.Generator.CSharp" -version $mgcVersion
Pack-And-Write-Info -package "Microsoft.Generator.CSharp.ClientModel" -version $mgcClientModelVersion
Pack-And-Write-Info -package "Microsoft.Generator.CSharp.Input" -version $mgcInputVersion
Pack-And-Write-Info -package "Microsoft.Generator.CSharp.Customization" -version $mgcCustomizationVersion
}
finally
{
Expand All @@ -170,7 +165,6 @@ $packageMatrix = [ordered]@{
"mgc" = $mgcVersion
"mgc-client-model" = $mgcClientModelVersion
"mgc-input" = $mgcInputVersion
"mgc-customization" = $mgcCustomizationVersion
"emitter" = $emitterVersion
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

using System;
using Microsoft.Generator.CSharp.Customization;
using UnbrandedTypeSpec;

namespace Sample
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Microsoft.Generator.CSharp.Customization;
using UnbrandedTypeSpec;

namespace Sample
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Threading.Tasks;
using Microsoft.Generator.CSharp.Customization;
using UnbrandedTypeSpec;

namespace Sample.Custom;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#nullable disable

using Microsoft.Generator.CSharp.Customization;
using UnbrandedTypeSpec;

namespace Sample.Models
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#nullable disable

using Microsoft.Generator.CSharp.Customization;
using UnbrandedTypeSpec;

namespace Sample.Models
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#nullable disable

using Microsoft.Generator.CSharp.Customization;
using UnbrandedTypeSpec;

namespace Sample.Models
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#nullable disable

using Microsoft.Generator.CSharp.Customization;
using UnbrandedTypeSpec;

namespace Sample.Models
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#nullable disable

using Microsoft.Generator.CSharp.Customization;
using UnbrandedTypeSpec;

namespace Sample.Models
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#nullable disable

using Microsoft.Generator.CSharp.Customization;
using UnbrandedTypeSpec;

namespace Sample.Models
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#nullable disable

using Microsoft.Generator.CSharp.Customization;
using UnbrandedTypeSpec;

namespace Sample.Models
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#nullable disable

using Microsoft.Generator.CSharp.Customization;
using UnbrandedTypeSpec;
using System;
using System.Collections.Generic;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

using Microsoft.Generator.CSharp.Customization;
using UnbrandedTypeSpec;

namespace Sample.Models
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#nullable disable

using Microsoft.Generator.CSharp.Customization;
using UnbrandedTypeSpec;

namespace Sample.Models
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#nullable disable

using Microsoft.Generator.CSharp.Customization;
using UnbrandedTypeSpec;

namespace Sample.Models
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Sample;
using System;
using System.Collections.Generic;
using Microsoft.Generator.CSharp.Customization;
using UnbrandedTypeSpec;

namespace Sample.Models;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

using Microsoft.Generator.CSharp.Customization;
using UnbrandedTypeSpec;
using System;

namespace Sample.Models
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using System.Collections.Generic;
using Microsoft.Generator.CSharp.Customization;
using UnbrandedTypeSpec;

namespace Sample.Models;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

using Microsoft.Generator.CSharp.Customization;
using UnbrandedTypeSpec;

namespace Sample.Models
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#nullable disable

using Sample;
using Microsoft.Generator.CSharp.Customization;
using UnbrandedTypeSpec;

namespace Sample.Models
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#nullable disable

using Microsoft.Generator.CSharp.Customization;
using UnbrandedTypeSpec;

namespace Sample.Models
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

using Microsoft.Generator.CSharp.Customization;
using UnbrandedTypeSpec;

namespace Sample.Models
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#nullable disable

using Microsoft.Generator.CSharp.Customization;
using UnbrandedTypeSpec;
using Microsoft.Generator.CSharp.Primitives;

namespace Sample.Models
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#nullable disable

using Microsoft.Generator.CSharp.Customization;
using UnbrandedTypeSpec;
using Microsoft.Generator.CSharp.Primitives;

namespace Sample.Models
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#nullable disable

using Microsoft.Generator.CSharp.Customization;
using UnbrandedTypeSpec;
using Microsoft.Generator.CSharp.Primitives;

namespace Sample.Models
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#nullable disable

using Microsoft.Generator.CSharp.Customization;
using UnbrandedTypeSpec;
using Microsoft.Generator.CSharp.Primitives;

namespace Sample.Models
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

using Microsoft.Generator.CSharp.Customization;
using UnbrandedTypeSpec;

namespace Sample.Models
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

using Microsoft.Generator.CSharp.Customization;
using UnbrandedTypeSpec;

namespace Sample.Models
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

using Microsoft.Generator.CSharp.Customization;
using UnbrandedTypeSpec;

namespace Sample.Models
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

using Microsoft.Generator.CSharp.Customization;
using UnbrandedTypeSpec;

namespace Sample.Models
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

using Microsoft.Generator.CSharp.Customization;
using UnbrandedTypeSpec;

namespace Sample.Models
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

using Microsoft.Generator.CSharp.Customization;
using UnbrandedTypeSpec;
using System;
using System.Collections.Generic;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Threading.Tasks;
using Microsoft.Generator.CSharp.Customization;
using UnbrandedTypeSpec;

namespace Sample.Custom;

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit e81b3e6

Please sign in to comment.