Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using the aspire 9.0.0 SDK with a prerelease nuget version expression fails #7102

Open
davidfowl opened this issue Jan 14, 2025 · 1 comment
Assignees
Milestone

Comments

@davidfowl
Copy link
Member

davidfowl commented Jan 14, 2025

<Project Sdk="Microsoft.NET.Sdk;Microsoft.NET.Sdk.Publish">
	
	<Sdk Name="Aspire.AppHost.Sdk" Version="9.0.0" />

	<PropertyGroup>
		<OutputType>Exe</OutputType>
		<TargetFramework>net8.0</TargetFramework>
		<ImplicitUsings>enable</ImplicitUsings>
		<Nullable>enable</Nullable>
		<UserSecretsId>ff7ad17b-2d94-4ac9-a472-b1b236c733c7</UserSecretsId>
		<IsPublishable>true</IsPublishable>
		<NoWarn>NETSDK1023;NETSDK1057</NoWarn>
		<UseAppHost>false</UseAppHost>
	</PropertyGroup>

	<ItemGroup>
		<PackageReference Include="Aspire.Hosting.AppHost" Version="9.*-*" />
	</ItemGroup>

</Project>
dotnet build C:\dev\git\AspireApps10\AspireApps10.sln /property:GenerateFullPaths=true /consoleloggerparameters:NoSummary /p:Configuration=Debug /p:Platform="Any CPU" 
  Determining projects to restore...
C:\Users\davifowl\.nuget\packages\aspire.apphost.sdk\9.0.0\Sdk\Sdk.targets(80,20): error MSB4184: The expression "[MSBuild]::VersionLessThan(9.*-*, 8.2.0)" cannot be evaluated. Version string was not in a correct format. [C:\dev\git\AspireApps10\samples\AspireApp1.DevHost\AspireApp1.DevHost.csproj]
@davidfowl davidfowl added area-acquisition untriaged New issue has not been triaged labels Jan 14, 2025
@joperezr joperezr added this to the 9.1 milestone Jan 16, 2025
@joperezr joperezr removed the untriaged New issue has not been triaged label Jan 16, 2025
@joperezr
Copy link
Member

Good catch, yes we should fix this. Putting this into 9.1 for now.

@joperezr joperezr self-assigned this Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants