Skip to content

Commit 43cee6a

Browse files
authored
Use dotnet build to generate code (Azure#15573)
1 parent b20c241 commit 43cee6a

File tree

37 files changed

+38
-38
lines changed

37 files changed

+38
-38
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ input-file:
377377
require: https://github.com/Azure/azure-rest-api-specs/blob/49fc16354df7211f8392c56884a3437138317d1f/specification/azsadmin/resource-manager/storage/readme.md
378378
```
379379
380-
3. Run `dotnet msbuild /t:GenerateCode` in src directory of the project (e.g. `net\sdk\storage\Azure.Management.Storage\src`). This would run AutoRest and generate the code. (NOTE: this step requires Node 13).
380+
3. Run `dotnet build /t:GenerateCode` in src directory of the project (e.g. `net\sdk\storage\Azure.Management.Storage\src`). This would run AutoRest and generate the code. (NOTE: this step requires Node 13).
381381
4. For management plan libraries add `azure-arm: true` setting to `autorest.md` client constructors and options would be auto-generated. For data-plane libraries follow the next two steps.
382382
4. Add a `*ClientOptions` type that inherits from `ClientOptions` and has a service version enum:
383383

eng/CodeGeneration.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<AutoRestInput Condition="'$(AutoRestInput)' == ''">$(_DefaultInputName)</AutoRestInput>
1010
<!--
1111
Allows passing additional AutoRest command line arguments, for example to run in interactive mode
12-
use the following command line (remove the space between minus minus): dotnet msbuild /t:GenerateCode /p:AutoRestAdditionalParameters="- -interactive"
12+
use the following command line (remove the space between minus minus): dotnet build /t:GenerateCode /p:AutoRestAdditionalParameters="- -interactive"
1313
-->
1414
<AutoRestAdditionalParameters></AutoRestAdditionalParameters>
1515

eng/templates/Azure.ResourceManager.Template/src/autorest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Generated code configuration
22

3-
Run `dotnet msbuild /t:GenerateCode` to generate code.
3+
Run `dotnet build /t:GenerateCode` to generate code.
44

55
``` yaml
66

sdk/anomalydetector/Azure.AI.AnomalyDetector/src/autorest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Generated code configuration
22

3-
Run `dotnet msbuild /t:GenerateCode` to generate code.
3+
Run `dotnet build /t:GenerateCode` to generate code.
44

55
``` yaml
66
input-file:

sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/autorest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Generated code configuration
22

3-
Run `dotnet msbuild /t:GenerateCode` to generate code.
3+
Run `dotnet build /t:GenerateCode` to generate code.
44

55
``` yaml
66
azure-arm: true

sdk/compute/Azure.ResourceManager.Compute/src/autorest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Generated code configuration
22

3-
Run `dotnet msbuild /t:GenerateCode` to generate code.
3+
Run `dotnet build /t:GenerateCode` to generate code.
44

55
``` yaml
66
azure-arm: true

sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/autorest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Generated code configuration
22

3-
Run `dotnet msbuild /t:GenerateCode` to generate code.
3+
Run `dotnet build /t:GenerateCode` to generate code.
44

55
``` yaml
66

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
dotnet msbuild /t:GenerateCode
1+
dotnet build /t:GenerateCode
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
dotnet msbuild /t:GenerateCode
1+
dotnet build /t:GenerateCode

sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/autorest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Generated code configuration
22

3-
Run `dotnet msbuild /t:GenerateCode` to generate code.
3+
Run `dotnet build /t:GenerateCode` to generate code.
44

55
``` yaml
66

0 commit comments

Comments
 (0)