File tree Expand file tree Collapse file tree 3 files changed +25
-3
lines changed Expand file tree Collapse file tree 3 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 1+ name : Setup .NET 9 Environment
2+ description : Install .NET 9 SDK and required workloads for NLWebNet development
3+ steps :
4+ - name : Install .NET 9 SDK
5+ run : |
6+ # Download and install .NET 9 SDK
7+ curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --version latest --channel 9.0
8+
9+ # Add .NET to PATH for current session
10+ export DOTNET_ROOT=$HOME/.dotnet
11+ export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools
12+
13+ # Verify installation
14+ $HOME/.dotnet/dotnet --version
15+
16+ # Set environment variables for subsequent steps
17+ echo "DOTNET_ROOT=$HOME/.dotnet" >> $GITHUB_ENV
18+ echo "$HOME/.dotnet" >> $GITHUB_PATH
19+ echo "$HOME/.dotnet/tools" >> $GITHUB_PATH
20+
21+ # Install required workloads
22+ $HOME/.dotnet/dotnet workload install aspire
Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ public static IResourceBuilder<ProjectResource> AddNLWebNetAppWithDataBackend(
5454 IResourceBuilder < IResourceWithConnectionString > dataBackend )
5555 {
5656 return builder . AddNLWebNetApp ( name )
57- . WithReference ( dataBackend )
58- . WithEnvironment ( "NLWebNet__DataBackend__ConnectionString" , dataBackend . Resource . GetConnectionString ( ) ) ;
57+ . WithReference ( dataBackend ) ;
5958 }
6059}
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
2+ <Sdk Name =" Aspire.AppHost.Sdk" Version =" 9.0.0" />
23
34 <PropertyGroup >
45 <OutputType >Exe</OutputType >
1819 </ItemGroup >
1920
2021 <ItemGroup >
21- <ProjectReference Include =" ..\..\src\NLWebNet\NLWebNet.csproj" />
22+ <ProjectReference Include =" ..\..\src\NLWebNet\NLWebNet.csproj" IsAspireProjectResource = " false " />
2223 <ProjectReference Include =" ..\..\demo\NLWebNet.Demo.csproj" />
2324 </ItemGroup >
2425
You can’t perform that action at this time.
0 commit comments