-
Notifications
You must be signed in to change notification settings - Fork 117
.NET 10 Migration #36
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
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
32e7ea2
Initial plan
Copilot f753e0a
Update all .csproj files and devcontainer configs to .NET 10
Copilot 87b00c9
Remove redundant dotnet-sdk-6.0 installation from AI Dockerfile
Copilot c0177c2
Add GitHub Actions workflow to validate builds of all projects
Copilot e60a682
Rename Build Validation to Build Validation!
jamesmontemagno 9cb797e
Fix Web API build error and remove Tizen references from MAUI projects
Copilot b7bed3d
Simplify MAUI workload installation in GitHub Actions workflow
Copilot dc5fc4a
update
jamesmontemagno 635c62c
Merge pull request #35 from dotnet/copilot/update-repo-to-dotnet-10
jamesmontemagno 5cd5f60
add essentials
jamesmontemagno bc374bd
Initial plan
Copilot 857b78a
build windows
jamesmontemagno 7c96bc1
Add smart path filtering to build validation workflow
Copilot d8c8d6c
Add explicit permissions to workflow for security
Copilot 2a02d17
updates
jamesmontemagno da55829
Merge branch 'dotnet10' into copilot/sub-pr-36
jamesmontemagno 89c2335
Merge pull request #37 from dotnet/copilot/sub-pr-36
jamesmontemagno 9a39481
add rendermode
jamesmontemagno 8b97aaf
update build for AI to build models first to build the thing needed i…
jamesmontemagno bce5945
disable ai-ml for now
jamesmontemagno 678bac3
update balzor hybrid
jamesmontemagno 6840273
updates
jamesmontemagno 30687d7
Address Copilot review feedback
Copilot 44e0a2a
Fix AI/ML build without generated model
Copilot f423343
Resolve generated model paths per project
Copilot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,4 @@ | ||
| FROM mcr.microsoft.com/dotnet/sdk:7.0 | ||
| RUN wget https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb -O packages-microsoft-prod.deb | ||
| RUN dpkg -i packages-microsoft-prod.deb | ||
| RUN rm packages-microsoft-prod.deb | ||
| RUN apt update && apt upgrade -y && apt install unzip curl dotnet-sdk-6.0 -y | ||
| RUN dotnet tool install -g mlnet-linux-x64 | ||
| FROM mcr.microsoft.com/dotnet/sdk:10.0 | ||
| RUN apt update && apt upgrade -y && apt install unzip curl -y | ||
| RUN dotnet tool install -g mlnet-linux-x64 --allow-roll-forward | ||
| ENV PATH="$PATH:/root/.dotnet/tools" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,275 @@ | ||
| name: Build Validation. | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ main ] | ||
| pull_request: | ||
| branches: [ main ] | ||
| workflow_dispatch: | ||
|
jongalloway marked this conversation as resolved.
|
||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| changes: | ||
| name: Detect Changes | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| dotnet: ${{ steps.filter.outputs.dotnet }} | ||
| blazor: ${{ steps.filter.outputs.blazor }} | ||
| webapi: ${{ steps.filter.outputs.webapi }} | ||
| nuget: ${{ steps.filter.outputs.nuget }} | ||
| visualstudio: ${{ steps.filter.outputs.visualstudio }} | ||
| container: ${{ steps.filter.outputs.container }} | ||
| ai-ml: ${{ steps.filter.outputs.ai-ml }} | ||
| iot: ${{ steps.filter.outputs.iot }} | ||
| blazor-hybrid: ${{ steps.filter.outputs.blazor-hybrid }} | ||
| maui: ${{ steps.filter.outputs.maui }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: dorny/paths-filter@v3 | ||
| id: filter | ||
| with: | ||
| filters: | | ||
| dotnet: | ||
| - '.NET/**' | ||
| blazor: | ||
| - 'Frontend Web with Blazor/**' | ||
| webapi: | ||
| - 'Backend Web with Web APIs/**' | ||
| nuget: | ||
| - 'Package Management with NuGet/**' | ||
| visualstudio: | ||
| - 'Visual Studio/**' | ||
| container: | ||
| - 'Containers/**' | ||
| ai-ml: | ||
| - 'Artificial Intelligence and Machine Learning/**' | ||
| iot: | ||
| - 'IoT/**' | ||
| blazor-hybrid: | ||
| - 'Blazor Hybrid/**' | ||
| maui: | ||
| - '.NET MAUI/**' | ||
|
|
||
| build-dotnet-samples: | ||
| name: Build .NET Samples | ||
| runs-on: ubuntu-latest | ||
| needs: changes | ||
| if: ${{ github.event_name == 'workflow_dispatch' || needs.changes.outputs.dotnet == 'true' }} | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup .NET | ||
| uses: actions/setup-dotnet@v4 | ||
| with: | ||
| dotnet-version: '10.0.x' | ||
|
|
||
| - name: Build MyConsoleApp | ||
| run: dotnet build ".NET/sample_code/MyConsoleApp/MyConsoleApp.sln" | ||
|
|
||
| - name: Build MyPasswordGenerator | ||
| run: dotnet build ".NET/sample_code/MyPasswordGenerator/MyPasswordGenerator.sln" | ||
|
|
||
| build-blazor-samples: | ||
| name: Build Blazor Samples | ||
| runs-on: ubuntu-latest | ||
| needs: changes | ||
| if: ${{ github.event_name == 'workflow_dispatch' || needs.changes.outputs.blazor == 'true' }} | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup .NET | ||
| uses: actions/setup-dotnet@v4 | ||
| with: | ||
| dotnet-version: '10.0.x' | ||
|
|
||
| - name: Build Blazor - Handling Events | ||
| run: dotnet build "Frontend Web with Blazor/sample-code/handling-events/BlazorApp/BlazorApp.sln" | ||
|
|
||
| - name: Build Blazor - Data Binding | ||
| run: dotnet build "Frontend Web with Blazor/sample-code/data-binding/BlazorApp/BlazorApp.sln" | ||
|
|
||
| - name: Build Blazor - Components | ||
| run: dotnet build "Frontend Web with Blazor/sample-code/introducing-blazor-components/BlazorApp/BlazorApp.sln" | ||
|
|
||
| - name: Build Blazor - Pages Routing Layouts | ||
| run: dotnet build "Frontend Web with Blazor/sample-code/pages-routing-layouts/BlazorApp/BlazorApp.sln" | ||
|
|
||
| - name: Build Blazor - Working with Data | ||
| run: dotnet build "Frontend Web with Blazor/sample-code/working-with-data/BlazorMovieApp/BlazorMovieApp.sln" | ||
|
|
||
| - name: Build Blazor - Render Modes | ||
| run: dotnet build "Frontend Web with Blazor/sample-code/render-modes/BlazorApp/BlazorApp.sln" | ||
|
|
||
| build-webapi-samples: | ||
| name: Build Web API Samples | ||
| runs-on: ubuntu-latest | ||
| needs: changes | ||
| if: ${{ github.event_name == 'workflow_dispatch' || needs.changes.outputs.webapi == 'true' }} | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup .NET | ||
| uses: actions/setup-dotnet@v4 | ||
| with: | ||
| dotnet-version: '10.0.x' | ||
|
|
||
| - name: Build MyNewApp Web API | ||
| run: dotnet build "Backend Web with Web APIs/sample-code/MyNewApp.sln" | ||
|
|
||
| build-nuget-samples: | ||
| name: Build NuGet Samples | ||
| runs-on: ubuntu-latest | ||
| needs: changes | ||
| if: ${{ github.event_name == 'workflow_dispatch' || needs.changes.outputs.nuget == 'true' }} | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup .NET | ||
| uses: actions/setup-dotnet@v4 | ||
| with: | ||
| dotnet-version: '10.0.x' | ||
|
|
||
| - name: Build AppLogger | ||
| run: dotnet build "Package Management with NuGet/sample-code/AppLogger/AppLogger.sln" | ||
|
|
||
| - name: Build Account | ||
| run: dotnet build "Package Management with NuGet/sample-code/Account/Account.sln" | ||
|
|
||
| build-visualstudio-samples: | ||
| name: Build Visual Studio Samples | ||
| runs-on: ubuntu-latest | ||
| needs: changes | ||
| if: ${{ github.event_name == 'workflow_dispatch' || needs.changes.outputs.visualstudio == 'true' }} | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup .NET | ||
| uses: actions/setup-dotnet@v4 | ||
| with: | ||
| dotnet-version: '10.0.x' | ||
|
|
||
| - name: Build RazorPagesCupcakes | ||
| run: dotnet build "Visual Studio/sample-code/RazorPagesCupcakes.sln" | ||
|
|
||
| build-container-samples: | ||
| name: Build Container Samples | ||
| runs-on: ubuntu-latest | ||
| needs: changes | ||
| if: ${{ github.event_name == 'workflow_dispatch' || needs.changes.outputs.container == 'true' }} | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup .NET | ||
| uses: actions/setup-dotnet@v4 | ||
| with: | ||
| dotnet-version: '10.0.x' | ||
|
|
||
| - name: Build Container WebApp | ||
| run: dotnet build "Containers/sample-code/container-webapp/container-webapp.csproj" | ||
|
|
||
| build-ai-ml-samples: | ||
| name: Build AI/ML Samples | ||
| runs-on: ubuntu-latest | ||
| needs: changes | ||
| if: ${{ github.event_name == 'workflow_dispatch' || needs.changes.outputs.ai-ml == 'true' }} | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup .NET | ||
| uses: actions/setup-dotnet@v4 | ||
| with: | ||
| dotnet-version: '10.0.x' | ||
|
|
||
| - name: Build MLModels | ||
| run: dotnet build "Artificial Intelligence and Machine Learning/sample-code/src/MLModels/MLModels.csproj" | ||
|
|
||
| - name: Build GitHub Issues Web API | ||
| run: dotnet build "Artificial Intelligence and Machine Learning/sample-code/src/GitHubIssuesWebApi/GitHubIssuesWebApi.csproj" | ||
|
|
||
| - name: Build ChatGPT Plugin | ||
| run: dotnet build "Artificial Intelligence and Machine Learning/sample-code/src/chatgpt-plugin/chatgpt-plugin.csproj" | ||
|
|
||
| build-iot-samples: | ||
| name: Build IoT Samples | ||
| runs-on: ubuntu-latest | ||
| needs: changes | ||
| if: ${{ github.event_name == 'workflow_dispatch' || needs.changes.outputs.iot == 'true' }} | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup .NET | ||
| uses: actions/setup-dotnet@v4 | ||
| with: | ||
| dotnet-version: '10.0.x' | ||
|
|
||
| - name: Build IoT Sensor | ||
| run: dotnet build "IoT/5-sensors-displays-i2c/code/Sensor/Sensor.csproj" | ||
|
|
||
| - name: Build IoT Adc | ||
| run: dotnet build "IoT/6-adc-spi/code/Adc/Adc.csproj" | ||
|
|
||
| - name: Build IoT Temperature | ||
| run: dotnet build "IoT/6-adc-spi/code/temperature/temperature.csproj" | ||
|
|
||
| build-blazor-hybrid-samples: | ||
| name: Build Blazor Hybrid Samples | ||
| runs-on: windows-latest | ||
| needs: changes | ||
| if: ${{ github.event_name == 'workflow_dispatch' || needs.changes.outputs.blazor-hybrid == 'true' }} | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup .NET | ||
| uses: actions/setup-dotnet@v4 | ||
| with: | ||
| dotnet-version: '10.0.x' | ||
|
|
||
| - name: Install .NET MAUI workload | ||
| run: dotnet workload install maui | ||
|
|
||
| - name: Restore HybridTodoApp | ||
| run: dotnet restore "Blazor Hybrid/sample-code/HybridTodoApp.sln" | ||
|
|
||
| - name: Build HybridTodoApp (Windows only) | ||
| run: dotnet build "Blazor Hybrid/sample-code/HybridTodoApp/HybridTodoApp.csproj" -f net10.0-windows10.0.19041.0 | ||
|
|
||
| - name: Build HybridTodoApp Components | ||
| run: dotnet build "Blazor Hybrid/sample-code/HybridTodoApp.Components/HybridTodoApp.Components.csproj" | ||
|
|
||
| - name: Build HybridTodoApp Website | ||
| run: dotnet build "Blazor Hybrid/sample-code/HybridTodoApp.Website/HybridTodoApp.Website.csproj" | ||
|
|
||
| build-maui-samples: | ||
| name: Build MAUI Samples (Windows) | ||
| runs-on: windows-latest | ||
| needs: changes | ||
| if: ${{ github.event_name == 'workflow_dispatch' || needs.changes.outputs.maui == 'true' }} | ||
| # Note: MAUI projects require platform-specific workloads and are built on Windows | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup .NET | ||
| uses: actions/setup-dotnet@v4 | ||
| with: | ||
| dotnet-version: '10.0.x' | ||
|
|
||
| - name: Install .NET MAUI workload | ||
| run: dotnet workload install maui | ||
|
|
||
| - name: Restore MauiApp2 | ||
| run: dotnet restore ".NET MAUI/sample-code/MauiApp2.sln" | ||
|
|
||
| - name: Build MauiApp2 (Windows only) | ||
| run: dotnet build ".NET MAUI/sample-code/MauiApp2.sln" -f net10.0-windows10.0.19041.0 | ||
2 changes: 1 addition & 1 deletion
2
Artificial Intelligence and Machine Learning/sample-code/Data/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| # Placeholder | ||
|
|
||
| Data files go in this directory | ||
| Data files go in this directory. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...al Intelligence and Machine Learning/sample-code/src/chatgpt-plugin/chatgpt-plugin.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.