aspire icon indicating copy to clipboard operation
aspire copied to clipboard

Add support for setting MSBuild Property

Open KannanKrish opened this issue 3 months ago • 0 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

I have a csproj that allows the user to set the TEST property.

<ItemGroup Condition="'$(TEST)' == 'true'">
	<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="$(NetEF)" />
	<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.NetTopologySuite" Version="$(NetEF)" />

	<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="$(NetEF)" />
	<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer.NetTopologySuite" Version="$(NetEF)" />
</ItemGroup>

My problem is that I want a Docker Compose file. I used the Aspire CLI command as follows:

aspire publish -p:TEST=false -o docker-compose-artifacts

I want to pass the property to all projects.

Describe the solution you'd like

aspire publish -p:TEST=false -o docker-compose-artifacts

I want to pass the property to all projects.

Additional context

No response

KannanKrish avatar Nov 14 '25 14:11 KannanKrish