Skip to content

Commit

Permalink
asyncapi#197 install dotnet in .nuget iso the csproj root
Browse files Browse the repository at this point in the history
  • Loading branch information
SennG committed Jul 7, 2024
1 parent df5636e commit 829d5a5
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<AsyncAPIBuildToolBuildDir>$([System.IO.Path]::GetDirectoryName($(MSBuildThisFileDirectory)))</AsyncAPIBuildToolBuildDir>
<AsyncAPIBuildToolRoot>$([System.IO.Path]::GetDirectoryName($(AsyncAPIBuildToolBuildDir)))</AsyncAPIBuildToolRoot>
<LocalToolConfigFile>./.config/dotnet-tools.json</LocalToolConfigFile>
<LocalToolConfigFillFullPath>$([System.IO.Path]::GetFullPath($([System.IO.Path]::Combine($(AsyncAPIBuildToolRoot), $(LocalToolConfigFile)))))</LocalToolConfigFillFullPath>
</PropertyGroup>

<Message Text="AsyncAPI.Build; AsyncAPIDocumentFormats: $(AsyncAPIDocumentFormats)" />
Expand All @@ -19,12 +20,16 @@
<Message Text="AsyncAPI.Build; MSBuildThisFileDirectory: $(MSBuildThisFileDirectory)" />
<Message Text="AsyncAPI.Build; MSBuildProjectFullPath: $(MSBuildProjectFullPath)" />
<Message Text="AsyncAPI.Build; MSBuildProjectDirectory: $(MSBuildProjectDirectory)" />
<Message Text="AsyncAPI.Build; LocalToolConfigFile: $(LocalToolConfigFile)" />
<Message Text="AsyncAPI.Build; LocalToolConfigFile: $(LocalToolConfigFile) --> $(LocalToolConfigFillFullPath)" />

<Exec Command="dotnet new tool-manifest" Condition=" '$([System.IO.File]::Exists($(LocalToolConfigFile)))' == 'false' " />
<Exec Command="dotnet tool install --local AsyncAPI.Saunter.Generator.Cli" />
<Exec Command="dotnet new tool-manifest"
Condition=" '$([System.IO.File]::Exists($(LocalToolConfigFillFullPath)))' == 'false' "
WorkingDirectory="$(AsyncAPIBuildToolRoot)" />
<Exec Command="dotnet tool install --local AsyncAPI.Saunter.Generator.Cli"
WorkingDirectory="$(AsyncAPIBuildToolRoot)" />

<Exec Command="dotnet tool run dotnet-asyncapi tofile --output &quot;$(MSBuildProjectDirectory)/$(AsyncAPIDocumentOutputPath)&quot; --format &quot;$(AsyncAPIDocumentFormats)&quot; --doc &quot;$(AsyncAPIDocumentNames)&quot; --filename &quot;$(AsyncAPIDocumentFilename)&quot; --env &quot;$(AsyncAPIDocumentEnvVars)&quot; &quot;$(MSBuildProjectDirectory)/$(OutputPath)/$(AssemblyTitle).dll&quot;"/>
<Exec Command="dotnet tool run dotnet-asyncapi tofile --output &quot;$(MSBuildProjectDirectory)/$(AsyncAPIDocumentOutputPath)&quot; --format &quot;$(AsyncAPIDocumentFormats)&quot; --doc &quot;$(AsyncAPIDocumentNames)&quot; --filename &quot;$(AsyncAPIDocumentFilename)&quot; --env &quot;$(AsyncAPIDocumentEnvVars)&quot; &quot;$(MSBuildProjectDirectory)/$(OutputPath)/$(AssemblyTitle).dll&quot;"
WorkingDirectory="$(AsyncAPIBuildToolRoot)" />
</Target>

</Project>

0 comments on commit 829d5a5

Please sign in to comment.