Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions src/Aspire.Hosting/Aspire.Hosting.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -142,18 +142,17 @@
<InternalsVisibleTo Include="Aspire.Hosting.CodeGeneration.Rust.Tests" />
</ItemGroup>

<ItemGroup>
<!-- Reference the analyzer to ensure it's built but don't reference its output -->
<ProjectReference Include="..\Aspire.Hosting.Integration.Analyzers\Aspire.Hosting.Integration.Analyzers.csproj" ReferenceOutputAssembly="false" Private="true" />
</ItemGroup>

Comment thread
eerhardt marked this conversation as resolved.
<!-- Include the integration analyzer in the package -->
<PropertyGroup>
<BeforePack>$(BeforePack);IncludeIntegrationAnalyzerInPackage</BeforePack>
</PropertyGroup>
<Target Name="IncludeIntegrationAnalyzerInPackage">
<MSBuild Projects="..\Aspire.Hosting.Integration.Analyzers\Aspire.Hosting.Integration.Analyzers.csproj"
Targets="Build"
Properties="Configuration=$(Configuration);Platform=$(Platform)" />

<MSBuild Projects="..\Aspire.Hosting.Integration.Analyzers\Aspire.Hosting.Integration.Analyzers.csproj"
Targets="GetTargetPath"
Properties="Configuration=$(Configuration);Platform=$(Platform)">
<MSBuild Projects="..\Aspire.Hosting.Integration.Analyzers\Aspire.Hosting.Integration.Analyzers.csproj" Targets="GetTargetPath">
<Output TaskParameter="TargetOutputs" PropertyName="AspireIntegrationAnalyzerFile" />
</MSBuild>
Comment thread
eerhardt marked this conversation as resolved.

Expand Down
Loading