64
64
<Reference Include =" System.Net.Http" />
65
65
<Reference Include =" System.Xml" />
66
66
</ItemGroup >
67
- <ItemGroup >
68
- <AutoRestGenerated Include =" generated\*.cs;generated\Models\*.cs" />
69
- </ItemGroup >
70
67
<ItemGroup >
71
68
<Compile Include =" Properties\AssemblyInfo.cs" />
72
69
<Compile Include =" ..\Properties\GlobalAssemblyInfo.cs" >
73
70
<Link >Properties\GlobalAssemblyInfo.cs</Link >
74
71
</Compile >
75
- <Compile Include =" @(AutoRestGenerated)" >
76
- <AutoGen >True</AutoGen >
77
- <Visible >False</Visible >
78
- </Compile >
79
72
</ItemGroup >
80
73
<ItemGroup >
81
74
<None Include =" app.config" />
100
93
SourceFiles =" $(UiPathSwaggerIntermediateLocation)\UiPath.swagger"
101
94
DestinationFolder =" Swagger\" Condition =" $(ErrorCode)!=0" />
102
95
</Target >
103
- <Target Name =" GenerateUiPathSwaggerClient" BeforeTargets =" BeforeBuild;BeforeRebuild"
96
+ <Target Name =" GenerateUiPathSwaggerClient"
97
+ DependsOnTargets =" DownloadSwagger"
98
+ BeforeTargets =" CoreCompile"
104
99
Inputs =" Swagger\UiPath.swagger"
105
- Outputs =" @(AutoRestGenerated)" >
106
- <Exec
107
- Command =" autorest --input-file=Swagger\UiPath.swagger --csharp --csharp.namespace=UiPath.Web.Client --add-credentials"
108
- Outputs =" @(AutoRestGenerated)" />
100
+ Outputs =" generated\UiPathWebApi.cs" >
101
+ <Exec
102
+ Command =" autorest --input-file=Swagger\UiPath.swagger --csharp --csharp.namespace=UiPath.Web.Client --add-credentials" />
103
+ <ItemGroup >
104
+ <AutoRestGenerated Include =" generated\*.cs;generated\Models\*.cs" />
105
+ <Compile Include =" @(AutoRestGenerated)" >
106
+ <AutoGen >True</AutoGen >
107
+ <Visible >False</Visible >
108
+ </Compile >
109
+ <FileWrites Include =" @(AutoRestGenerated)" />
110
+ </ItemGroup >
109
111
</Target >
110
112
</Project >
0 commit comments