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

No option for Adding .NET Aspire Support #8646

Open
dajma00 opened this issue Apr 2, 2025 · 5 comments
Open

No option for Adding .NET Aspire Support #8646

dajma00 opened this issue Apr 2, 2025 · 5 comments

Comments

@dajma00
Copy link

dajma00 commented Apr 2, 2025

Type of issue

Missing information

Description

I am trying to add .NET Aspire support to an existing Blazor server application that was initially started with .NET7 and later upgraded to .NET9. When I go into Add option by right clicking the project in Visual Studio 2022, I don't see the Add .NET Aspire Support option there. Instead I see Add Telemetry option.

We need improvement in the docs to guide what to do when the option to .NET Aspire is not seen.

Page URL

https://learn.microsoft.com/en-us/dotnet/aspire/get-started/add-aspire-existing-app?tabs=windows

Content source URL

https://github.com/dotnet/docs-aspire/blob/main/docs/get-started/add-aspire-existing-app.md

Document Version Independent Id

8fd88d3c-cf2c-973d-e88b-83e552cd8fa0

Platform Id

e910e88b-fdb8-ee4b-83d3-e833e605bd03

Article author

@IEvangelist

Related Issues

@IEvangelist
Copy link
Member

Hi @dajma00 - thank you for posting this issue. I just tried this locally, and I am seeing the option that you're missing. Let's start by verifying the version of Visual Studio that you're on, could you please share that?

Help > About Microsoft Visual Studio

Then tell me the version...

@IEvangelist IEvangelist self-assigned this Apr 3, 2025
@dajma00
Copy link
Author

dajma00 commented Apr 4, 2025

I am on Visual Stuido 2022 version 17.13.5. I see the option in recently added AI Extensions template from Steve Sanderson. However, I have an older Blazor project that was started as a .NET7 Blazor server app which is now upgraded to .NET9. I don't see the Aspire option for that project.

@davidfowl
Copy link
Member

Aspire supports .NET 8 and 9

@dajma00
Copy link
Author

dajma00 commented Apr 4, 2025

So this app has been upgraded to .NET9, that is what I am trying to figure out:

<Project Sdk="Microsoft.NET.Sdk.Web">

	<PropertyGroup>
		<TargetFramework>net9.0</TargetFramework>
		<Nullable>disable</Nullable>
		<ImplicitUsings>enable</ImplicitUsings>
		<UserSecretsId>aspnet-Clinic-8C7DD3E1-7599-48D2-AD7C-1C39265C5BDB</UserSecretsId>
		<VersionSuffix>$([System.DateTime]::UtcNow.ToString(yy)).$([System.DateTime]::UtcNow.ToString(MM)).$([System.DateTime]::UtcNow.ToString(dd)).$([System.DateTime]::UtcNow.ToString(hhmm))</VersionSuffix>
		<AssemblyVersion Condition=" '$(VersionSuffix)' == '' ">0.0.0.1</AssemblyVersion>
		<AssemblyVersion Condition=" '$(VersionSuffix)' != '' ">$(VersionSuffix)</AssemblyVersion>
		<Version Condition=" '$(VersionSuffix)' == '' ">0.0.1.0</Version>
		<Version Condition=" '$(VersionSuffix)' != '' ">$(VersionSuffix)</Version>
	
	</PropertyGroup>

	<ItemGroup>
		<Compile Remove="Models\Base\**" />
		<Compile Remove="wwwroot\Files\Patient-2\**" />
		<Compile Remove="wwwroot\Files\Patient-3\**" />
		<Compile Remove="wwwroot\Files\Patient-4\**" />
		<Compile Remove="wwwroot\Files\Patient-6\**" />
		<Compile Remove="wwwroot\Files\Patient-7\**" />
		<Compile Remove="wwwroot\Files\Patient-8\**" />
		<Content Remove="Models\Base\**" />
		<Content Remove="wwwroot\Files\Patient-2\**" />
		<Content Remove="wwwroot\Files\Patient-3\**" />
		<Content Remove="wwwroot\Files\Patient-4\**" />
		<Content Remove="wwwroot\Files\Patient-6\**" />
		<Content Remove="wwwroot\Files\Patient-7\**" />
		<Content Remove="wwwroot\Files\Patient-8\**" />
		<EmbeddedResource Remove="Models\Base\**" />
		<EmbeddedResource Remove="wwwroot\Files\Patient-2\**" />
		<EmbeddedResource Remove="wwwroot\Files\Patient-3\**" />
		<EmbeddedResource Remove="wwwroot\Files\Patient-4\**" />
		<EmbeddedResource Remove="wwwroot\Files\Patient-6\**" />
		<EmbeddedResource Remove="wwwroot\Files\Patient-7\**" />
		<EmbeddedResource Remove="wwwroot\Files\Patient-8\**" />
		<None Remove="Models\Base\**" />
		<None Remove="wwwroot\Files\Patient-2\**" />
		<None Remove="wwwroot\Files\Patient-3\**" />
		<None Remove="wwwroot\Files\Patient-4\**" />
		<None Remove="wwwroot\Files\Patient-6\**" />
		<None Remove="wwwroot\Files\Patient-7\**" />
		<None Remove="wwwroot\Files\Patient-8\**" />
	</ItemGroup>

	<ItemGroup>
		<Compile Remove="Models\PhysicalFileProvider.cs" />
	</ItemGroup>

	<ItemGroup>
	  <Content Remove="Pages\TreatmentPlan_I_old.razor" />
	</ItemGroup>

	<ItemGroup>
	  <Content Include="logo.png">
	    <ExcludeFromSingleFile>true</ExcludeFromSingleFile>
	    <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
	  </Content>
	</ItemGroup>

	<ItemGroup>
		<PackageReference Include="BlazorSchool.Components.Web" Version="7.2.0" />
		<PackageReference Include="bunit" Version="1.31.3" />
		<PackageReference Include="DeviceId" Version="6.7.0" />
		<PackageReference Include="DeviceId.Linux" Version="6.4.0" />
		<PackageReference Include="DeviceId.Windows" Version="6.6.0" />
		<PackageReference Include="Microsoft.AspNetCore.Authentication.Google" Version="8.0.0" />
		<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="9.0.3" />
		<PackageReference Include="Microsoft.AspNetCore.Authentication.Twitter" Version="8.0.0" />
		<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="8.0.0" />
		<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="8.0.0" />
		<PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="9.0.0-rc.2.24474.3" />
		<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="8.0.0" />
		<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.0" />
		<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.0" />
		<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.0">
			<PrivateAssets>all</PrivateAssets>
			<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
		</PackageReference>
		<PackageReference Include="Microsoft.Extensions.AI" Version="9.3.0-preview.1.25161.3" />
		<PackageReference Include="Microsoft.Extensions.AI.OpenAI" Version="9.3.0-preview.1.25161.3" />
		<PackageReference Include="Microsoft.Extensions.VectorData.Abstractions" Version="9.0.0-preview.1.25078.1" />
		<PackageReference Include="Microsoft.SemanticKernel.Core" Version="1.37.0" />
		<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Core" Version="9.0.0-rc.2.24508.2" />
		<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="9.0.0-rc.2.24508.2" />
		<PackageReference Include="MudBlazor" Version="8.3.0" />
		<PackageReference Include="NewRelic.LogEnrichers.Serilog" Version="1.2.0" />
		<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
		<PackageReference Include="OllamaSharp" Version="5.1.9" />
		<PackageReference Include="OpenAI" Version="2.2.0-beta.1" />
		<PackageReference Include="PdfPig" Version="0.1.11-alpha-20250331-4fbcc" />
		<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="8.0.0" />
		<PackageReference Include="Postmark" Version="5.1.0" />
		<PackageReference Include="Standard.Licensing" Version="1.2.0" />
		<PackageReference Include="Stubble.Core" Version="1.10.8" />
		<PackageReference Include="Swashbuckle.AspNetCore.Swagger" Version="8.0.0" />
		<PackageReference Include="Swashbuckle.AspNetCore.SwaggerGen" Version="8.0.0" />
		<PackageReference Include="Syncfusion.Blazor.Calendars" Version="28.1.35" />
		<PackageReference Include="Syncfusion.Blazor.Core" Version="28.1.35" />
		<PackageReference Include="Syncfusion.Blazor.DropDowns" Version="28.1.35" />
		<PackageReference Include="Syncfusion.Blazor.FileManager" Version="28.1.35" />
		<PackageReference Include="Syncfusion.Blazor.Grid" Version="28.1.35" />
		<PackageReference Include="Syncfusion.Blazor.ImageEditor" Version="28.1.35" />
		<PackageReference Include="Syncfusion.Blazor.Inputs" Version="28.1.35" />
		<PackageReference Include="Syncfusion.Blazor.Schedule" Version="28.1.35" />
		<PackageReference Include="Syncfusion.Blazor.Themes" Version="28.1.35" />
		<PackageReference Include="Syncfusion.EJ2.AspNet.Core" Version="28.1.35" />
		<PackageReference Include="Serilog" Version="4.0.1" />
		<!--<PackageReference Include="Syncfusion.HtmlToPdfConverter.Net.Linux" Version="28.2.5" />-->



		<PackageReference Include="Syncfusion.HtmlToPdfConverter.Net.Windows" Version="28.2.5" />



		<PackageReference Include="System.Linq.Async" Version="6.0.1" />



		<PackageReference Include="System.Numerics.Tensors" Version="10.0.0-preview.2.25163.2" />

		<PackageReference Include="xunit" Version="2.9.0" />


	</ItemGroup>

	<ItemGroup>
		<Folder Include="wwwroot\Files\Patient-9\" />
	</ItemGroup>


	<!-- Conditional Package Reference for Windows -->
	<!--<ItemGroup Condition="'$(OS)' == 'Windows_NT'">
		<PackageReference Include="Syncfusion.HtmlToPdfConverter.Net.Windows" Version="28.2.5" />
	</ItemGroup>

	--><!-- Conditional Package Reference for Linux --><!--
	<ItemGroup Condition="'$(OS)' != 'Windows_NT'">
		<PackageReference Include="Syncfusion.HtmlToPdfConverter.Net.Linux" Version="28.2.5" />
	</ItemGroup>-->

	

</Project>

and this is what I see:

Image

@IEvangelist
Copy link
Member

IEvangelist commented Apr 7, 2025

Yeah, I would expect that to work too, @dajma00. I think this is a product issue, not a docs issue. Do you agree @davidfowl?

@IEvangelist IEvangelist transferred this issue from dotnet/docs-aspire Apr 8, 2025
@IEvangelist IEvangelist removed their assignment Apr 8, 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

3 participants