Code Monkey home page Code Monkey logo

mslearn-tailspin-spacegame-web's Introduction

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

For maintainers: Updating feature branches

This repository uses feature branches to associate code with specific modules on Microsoft Learn. Any changes you make to the default branch will likely need to be propagated to each feature branch in this repo. A common example is when we need to update Node packages in package.json.

Here's one way to update the remote feature branches when you make a change to the default branch. Note that this process deletes all local branches except for main.

# Synchronize with the remote main branch
git checkout main
git pull origin main
# Delete all local branches except for main
git branch | grep -ve "main" | xargs git branch -D
# List all remote branches except for main
branches=$(git branch -r 2> /dev/null | grep -ve "main" | cut -d "/" -f 2)
# Synchronize each branch with main and push the result
while IFS= read -r branch; do
    # Fetch and switch to feature branch
    git fetch origin $branch
    git checkout $branch
    # Ensure local environment is free of extra files
    git clean -xdf
    # Merge down main
    git merge --no-ff main
    # Break out if merge failed
    if [ $? -ne 0 ]; then
        break
    fi
    # Push update
    git push origin $branch
done <<< "$branches"
# Switch back to main
git checkout main

Legal Notices

Microsoft and any contributors grant you a license to the Microsoft documentation and other content in this repository under the Creative Commons Attribution 4.0 International Public License, see the LICENSE file, and grant you a license to any code in the repository under the MIT License, see the LICENSE-CODE file.

Microsoft, Windows, Microsoft Azure and/or other Microsoft products and services referenced in the documentation may be either trademarks or registered trademarks of Microsoft in the United States and/or other countries. The licenses for this project do not grant you rights to use any Microsoft names, logos, or trademarks. Microsoft's general trademark guidelines can be found at http://go.microsoft.com/fwlink/?LinkID=254653.

Privacy information can be found at https://privacy.microsoft.com/en-us/

Microsoft and any contributors reserve all other rights, whether under their respective copyrights, patents, or trademarks, whether by implication, estoppel or otherwise.

mslearn-tailspin-spacegame-web's People

Contributors

dependabot[bot] avatar jamcneil avatar juliakm avatar microsoft-github-policy-service[bot] avatar microsoftopensource avatar msftgits avatar steved0x avatar stijnlegtenberg avatar tpetchel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mslearn-tailspin-spacegame-web's Issues

Error MSB4126

I encounter this error when I build the project in VS Code as below:

dotnet build --configuration Release

Appreciate any one can help asap.

Can't do git fetch upstream release

While doing the following instructions:

git fetch upstream release
git checkout -B release upstream/release

The output is:
fatal: couldn't find remote ref release

Error "dotnet run --configuration Release --no-build --project Tailspin.SpaceGame.Web"

Hi all,

I am working on the Microsoft course "creat a build pipeline".

The Exercise "Build and run the web application" in the chapter "Get the sample application" does not provide the expected results.

I was able to run the following command "dotnet build -- configuration Release" (0 warnings; 0 errors), however I receive an error on the next step:

UCHHAR@LT2753 MINGW64 ~/mslearn-tailspin-spacegame-web/Tailspin.SpaceGame.Web (master)
$ dotnet run --configuration Release --no-build --project Tailspin.SpaceGame.Web
'Tailspin.SpaceGame.Web' is not a valid project file.

I really hope you can help me, since I do not seem to find the answer on Google and am not very familiair with Visual Studio Code or Bash.

Thanks in advance.

bug

the app crashes

Continuous error: 'Tailspin.SpaceGame.Web' is not a valid project file

Hi all,

I am working on the Microsoft course "create a build pipeline with Azure Pipelines".

The Exercise "Build and run the web application" in the chapter "Get the sample application" does not provide the expected results in Visual Studio Code.

I was able to run the following command in VS Code:
"$ dotnet build --configuration Release" with no warnings or errors.

But when executing the following command, I am receiving the "'Tailspin.SpaceGame.Web' is not a valid project file." error,
"$ dotnet run --configuration Release --no-build --project Tailspin.SpaceGame.Web"

Please advise how to resolve this. No answers are showing up in web searches, and others have experienced the same issue without answers.

Thanks in advance.

Error when building

Hello,

Sorry, I am not a programer.

Following instructions from "https://docs.microsoft.com/en-us/learn/modules/create-a-build-pipeline/3-build-locally"

run "dotnet build --configuration Release"

I got below error:

` It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '2.0.7' was not found.
- The following frameworks were found:
3.1.4 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

You can resolve the problem by installing the specified framework and/or SDK.

The specified framework can be found at:
- https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=2.0.7&arch=x64&rid=win10-x64
C:\Users\user\.nuget\packages\microsoft.aspnetcore.razor.design\2.1.2\build\netstandard2.0\Microsoft.AspNetCore.Razor.Design.CodeGeneration.targets(121,5): error : rzc generate exited with code -2147450730. [C:\REPOS\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web\Tailspin.SpaceGame.Web.csproj]

Build FAILED.

C:\Users\user\.nuget\packages\microsoft.aspnetcore.razor.design\2.1.2\build\netstandard2.0\Microsoft.AspNetCore.Razor.Design.CodeGeneration.targets(121,5): error : rzc generate exited with code -2147450730. [C:\REPOS\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web\Tailspin.SpaceGame.Web.csproj]
0 Warning(s)
1 Error(s)`

The specified framework has reached end of life. What should I do?

Thank you

error NU1201: Project Tailspin.SpaceGame.Web is not compatible with net5.0

Installed:
89 package(s) to /home/vsts/work/1/s/Tailspin.SpaceGame.Web.Tests/Tailspin.SpaceGame.Web.Tests.csproj
Done executing task "RestoreTask" -- FAILED.
1>Done building target "Restore" in project "Tailspin.SpaceGame.Web.Tests.csproj" -- FAILED.
1>Done Building Project "/home/vsts/work/1/s/Tailspin.SpaceGame.Web.Tests/Tailspin.SpaceGame.Web.Tests.csproj" (Restore target(s)) -- FAILED.

Error while checking out during "Exercise - Add unit tests to your application"

Received the following error while running Step 2 from "Fetch the branch from GitHub":

terminal command: git checkout -B unit-tests upstream/unit-tests
error: The following untracked working tree files would be overwritten by checkout:
.gitignore
.vscode/launch.json
.vscode/tasks.json
LICENSE
LICENSE-CODE
README.md
Tailspin.SpaceGame.Web.sln
Tailspin.SpaceGame.Web/Controllers/HomeController.cs
Tailspin.SpaceGame.Web/IDocumentDBRepository.cs
Tailspin.SpaceGame.Web/LocalDocumentDBRepository.cs
Tailspin.SpaceGame.Web/Models/ErrorViewModel.cs
Tailspin.SpaceGame.Web/Models/LeaderboardViewModel.cs
Tailspin.SpaceGame.Web/Models/Model.cs
Tailspin.SpaceGame.Web/Models/Profile.cs
Tailspin.SpaceGame.Web/Models/ProfileViewModel.cs
Tailspin.SpaceGame.Web/Models/Score.cs
Tailspin.SpaceGame.Web/Program.cs
Tailspin.SpaceGame.Web/SampleData/profiles.json
Tailspin.SpaceGame.Web/SampleData/scores.json
Tailspin.SpaceGame.Web/Startup.cs
Tailspin.SpaceGame.Web/Tailspin.SpaceGame.Web.csproj
Tailspin.SpaceGame.Web/Views/Home/Index.cshtml
Tailspin.SpaceGame.Web/Views/Home/Privacy.cshtml
Tailspin.SpaceGame.Web/Views/Home/Profile.cshtml
Tailspin.SpaceGame.Web/Views/Shared/Error.cshtml
Tailspin.SpaceGame.Web/Views/Shared/_CookieConsentPartial.cshtml
Tailspin.SpaceGame.Web/Views/Shared/_Layout.cshtml
Tailspin.SpaceGame.Web/Views/Shared/_ValidationScriptsPartial.cshtml
Tailspin.SpaceGame.Web/Views/_ViewImports.cshtml
Tailspin.SpaceGame.Web/Views/_ViewStart.cshtml
Tailspin.SpaceGame.Web/appsettings.Development.json
Tailspin.SpaceGame.Web/appsettings.json
Tailspin.SpaceGame.Web/wwwroot/css/site.css
Tailspin.SpaceGame.Web/wwwroot/css/site.css.map
Tailspin.SpaceGame.Web/wwwroot/css/site.min.css
Tailspin.SpaceGame.Web/wwwroot/css/site.scss
Tailspin.SpaceGame.Web/wwwroot/favicon.ico
Tailspin.SpaceGame.Web/wwwroot/images/avatars/default.svg
Tailspin.SpaceGame.Web/wwwroot/images/placeholder.svg
Tailspin.SpaceGame.Web/wwwroot/images/space-background.svg
Tailspin.SpaceGame.Web/wwwroot/images/space-foreground.svg
Tailspin.SpaceGame.Web/wwwroot/images/space-game-placeholder.svg
Tailspin.SpaceGame.Web/wwwroot/images/space-game-title.svg
Tailspin.SpaceGame.Web/wwwroot/js/site.js
Tailspin.SpaceGame.Web/wwwroot/js/site.min.js
Tailspin.SpaceGame.Web/wwwroot/lib/bootstrap/.bower.json
Tailspin.SpaceGame.Web/wwwroot/lib/bootstrap/LICENSE
Tailspin.SpaceGame.Web/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css
Tailspin.SpaceGame.Web/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css.map
Tailspin.SpaceGame.Web/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.min.css
Tailspin.SpaceGame.Web/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.min.css.map
Tailspin.SpaceGame.Web/wwwroot/lib/bootstrap/dist/css/bootstrap.css
Tailspin.SpaceGame.Web/wwwroot/lib/bootstrap/dist/css/bootstrap.css.map
Tailspin.SpaceGame.Web/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css
Tailspin.SpaceGame.Web/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css.map
Tailspin.SpaceGame.Web/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot
Tailspin.SpaceGame.Web/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.svg
Tailspin.SpaceGame.Web/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf
Tailspin.SpaceGame.Web/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff
Tailspin.SpaceGame.Web/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2
Tailspin.SpaceGame.Web/wwwroot/lib/bootstrap/dist/js/bootstrap.js
Tailspin.SpaceGame.Web/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js
Tailspin.SpaceGame.Web/wwwroot/lib/bootstrap/dist/js/npm.js
Tailspin.SpaceGame.Web/wwwroot/lib/jquery-validation-unobtrusive/.bower.json
Tailspin.SpaceGame.Web/wwwroot/lib/jquery-validation-unobtrusive/LICENSE.txt
Tailspin.SpaceGame.Web/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js
Tailspin.SpaceGame.Web/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js
Tailspin.SpaceGame.Web/wwwroot/lib/jquery-validation/.bower.json
Tailspin.SpaceGame.Web/wwwroot/lib/jquery-validation/LICENSE.md
Tailspin.SpaceGame.Web/wwwroot/lib/jquery-validation/dist/additional-methods.js
Tailspin.SpaceGame.Web/wwwroot/lib/jquery-v
error: The following untracked working tree files would be removed by checkout:
.agent-tools/build-agent.sh
.agent-tools/build-tools.sh
.agent-tools/readme.md
.devcontainer/Dockerfile
.devcontainer/devcontainer.json
.devcontainer/library-scripts/common-debian.sh
.devcontainer/library-scripts/start.sh
SECURITY.md
Please move or remove them before you switch branches.
Aborting

error NU1100: Unable to resolve in Module "Run quality tests"

I'm working through the Azure DevOps modules and I've come to a roadblock on https://learn.microsoft.com/en-us/training/modules/run-quality-tests-build-pipeline/4-add-unit-tests

I fetch the upstream branch, do a checkout and then proceed to the subsection "Run the tests locally" where I get a bunch of errors (see below). I have no idea on how to proceed to fix this, and am blocked for the remainder of the course :/

`$ dotnet build --configuration Release
MSBuild version 17.3.2+561848881 for .NET
Determining projects to restore...
C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.Tests\Tailspin.SpaceGame.Web.Tests.csproj : error NU1100: Unable to resolve 'nunit (>= 3.13.2)' for 'net6.0'.
[C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.sln]
C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.Tests\Tailspin.SpaceGame.Web.Tests.csproj : error NU1100: Unable to resolve 'NUnit3TestAdapter (>= 3.17.0)' f
or 'net6.0'. [C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.sln]
C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.Tests\Tailspin.SpaceGame.Web.Tests.csproj : error NU1100: Unable to resolve 'Microsoft.NET.Test.Sdk (>= 16.10
.0)' for 'net6.0'. [C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.sln]
Failed to restore C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.Tests\Tailspin.SpaceGame.Web.Tests.csproj (in 120 ms).
1 of 2 projects are up-to-date for restore.

Build FAILED.

C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.Tests\Tailspin.SpaceGame.Web.Tests.csproj : error NU1100: Unable to resolve 'nunit (>= 3.13.2)' for 'net6.0'.
[C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.sln]
C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.Tests\Tailspin.SpaceGame.Web.Tests.csproj : error NU1100: Unable to resolve 'NUnit3TestAdapter (>= 3.17.0)' f
or 'net6.0'. [C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.sln]
C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.Tests\Tailspin.SpaceGame.Web.Tests.csproj : error NU1100: Unable to resolve 'Microsoft.NET.Test.Sdk (>= 16.10
.0)' for 'net6.0'. [C:\Workdir\MyApps\repo\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.sln]
0 Warning(s)
3 Error(s)

Time Elapsed 00:00:00.61`

Mac M1 issue with build

The documentation states that we need version 5 of dotnet https://docs.microsoft.com/en-gb/learn/modules/create-a-build-pipeline/1-introduction but the mac m1 doesn't support this version. M1 support is added from dotnet 6.

While trying to run and build the app running this command dotnet run --configuration Release --no-build --project Tailspin.SpaceGame.Web fails.

A fatal error occurred. The required library libhostfxr.dylib could not be found.
If this is a self-contained application, that library should exist in [/Users/username/Projects/mslearn-tailspin-spacegame-web/Tailspin.SpaceGame.Web/bin/Release/net5.0/].
If this is a framework-dependent application, install the runtime in the global location [/usr/local/share/dotnet/x64] or use the DOTNET_ROOT environment variable to specify the runtime location or register the runtime location in [/etc/dotnet/install_location].

The .NET runtime can be found at:
  - https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=osx.11.1-x64&apphost_version=5.0.13

Does the demo application need to updated with the latest dotnet version?

Exercise - Create the pipeline - Yml file fails with 3.1.300

I am following the lab at
https://docs.microsoft.com/en-us/learn/modules/create-a-build-pipeline/6-create-the-pipeline
reached step

Add build tasks

the step

Build the project - Release

fails complaining about dotnet sdk version as you can notice in the snapshot.

I saw an issue here and someone suggested to switch to 2.2.x, which worked fine for me also. I think you need to revise your code with contents on MSLearn labs regularly and update to follow along with Azure changes as this is very frustrating and we can't open an issue for the lab team. 2nd, I saw someone who is suggesting to reset code, hard reset........, this is not really not a good approach.
Question, when writing Yaml pipeline, is there any intellisense or good doc to follow?
BuildFail

got error when run "dotnet build --configuration Release"

following instruction "https://docs.microsoft.com/en-us/learn/modules/create-a-build-pipeline/3-build-locally"

run "dotnet build --configuration Release"
got below error.

C:\Program Files\dotnet\sdk\3.1.201\NuGet.targets(124,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json. [C:\temp\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.sln]
C:\Program Files\dotnet\sdk\3.1.201\NuGet.targets(124,5): error : No such host is known. [C:\temp\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.sln]

Github Codespaces dev environment: Error on Docker build: E: Unable to locate package liblttng-ust0

I am currently working through the Create a build pipeline with Azure Pipelines and have encountered an error when attempting to create a codespace from my forked branch. I am on unit 3 of 10. I have created the Azure DevOps personal access token, I configured it under Github > Local Forked Branch > Settings > Secrets & Variables > Codespaces. I then proceed to the next step to create a codespace from the forked branch and the docker build fails each time and will not allow me to run the application. Below is the entry from the creation.log file of the part that fails:

#17 3.868 PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
#17 3.868 NAME="Debian GNU/Linux"
#17 3.868 VERSION_ID="12"
#17 3.868 VERSION="12 (bookworm)"
#17 3.868 VERSION_CODENAME=bookworm
#17 3.868 ID=debian
#17 3.868 HOME_URL="https://www.debian.org/"
#17 3.868 SUPPORT_URL="https://www.debian.org/support"
#17 3.868 BUG_REPORT_URL="https://bugs.debian.org/"
#17 3.868 ------------------------------
#17 3.868 The current OS is Debian based
#17 3.868 --------Debian Version--------
#17 3.870 12.3
#17 3.870 ------------------------------
#17 3.870 /usr/bin/apt
#17 3.882 
#17 3.882 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
#17 3.882 
2023-12-09 23:06:59.154Z: #17 4.387 Hit:1 http://deb.debian.org/debian bookworm InRelease
2023-12-09 23:06:59.303Z: #17 4.387 Hit:2 https://packages.microsoft.com/repos/azure-cli bookworm InRelease
#17 4.387 Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
#17 4.387 Hit:4 http://deb.debian.org/debian-security bookworm-security InRelease
2023-12-09 23:06:59.307Z: #17 4.387 Hit:5 https://dl.yarnpkg.com/debian stable InRelease
2023-12-09 23:06:59.602Z: #17 4.835 Reading package lists...2023-12-09 23:07:00.055Z: 
2023-12-09 23:07:00.063Z: #17 5.234 Building dependency tree...2023-12-09 23:07:00.204Z: 
#17 5.330 Reading state information...
#17 5.338 All packages are up to date.
#17 5.347 
#17 5.347 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
#17 5.347 
#17 5.350 Reading package lists...2023-12-09 23:07:00.608Z: 
2023-12-09 23:07:00.616Z: #17 5.755 Building dependency tree...
#17 5.841 Reading state information...2023-12-09 23:07:00.761Z: 
#17 5.852 E: Unable to locate package liblttng-ust0
#17 5.854 'apt' failed with exit code '0'
#17 5.854 Can't install dotnet core dependencies.
#17 5.854 Please make sure that required repositories are connected for relevant package installer.
#17 5.854 For issues with dependencies installation (like 'dependency was not found in repository' or 'problem retrieving the repository index file') - you can reach out to distribution owner for futher support.
#17 5.854 You can manually install all required dependencies based on following documentation
#17 5.854 https://docs.microsoft.com/dotnet/core/install/linux
2023-12-09 23:07:02.401Z: #17 ERROR: process "/bin/sh -c cd /home/vscode/azure-pipelines     && curl -O -L https://vstsagentpackage.azureedge.net/agent/${AGENT_VERSION}/vsts-agent-linux-${ARCH}-${AGENT_VERSION}.tar.gz     && tar xzf /home/vscode/azure-pipelines/vsts-agent-linux-${ARCH}-${AGENT_VERSION}.tar.gz     && /home/vscode/azure-pipelines/bin/installdependencies.sh" did not complete successfully: exit code: 12023-12-09 23:07:02.407Z: 

Any help would be appreciated. Thank you.

cannot convert from 'System.Linq.Expressions.Expression<System.Func>' to 'System.Func' [Tailspin.SpaceGame.Web.Tests]csharp(CS1503)

@tpetchel, I'm triaging two Customer Feedback work items related to mslearn-tailspin-spacegame-web:

Both work items are related to the same issue. I've confirmed the issue locally:

$ dotnet build --configuration Release
Microsoft (R) Build Engine version 17.0.0+c9eb9dd64 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

  Determining projects to restore...
  Restored C:\Users\v-jopar\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web\Tailspin.SpaceGame.Web.csproj (in 122 ms).
  Restored C:\Users\v-jopar\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.Tests\Tailspin.SpaceGame.Web.Tests.csproj (in 502 ms).
  Tailspin.SpaceGame.Web -> C:\Users\v-jopar\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web\bin\Release\net5.0\Tailspin.SpaceGame.Web.dll
  Tailspin.SpaceGame.Web -> C:\Users\v-jopar\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web\bin\Release\net5.0\Tailspin.SpaceGame.Web.Views.dll
C:\Users\v-jopar\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.Tests\DocumentDBRepository_GetItemsAsyncShould.cs(43,17): error CS1503: Argument 1: cannot convert from 'System.Linq.Expressions.Expression<System.Func<TailSpin.SpaceGame.Web.Models.Score, bool>>' to 'System.Func<TailSpin.SpaceGame.Web.Models.Score, bool>' [C:\Users\v-jopar\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.Tests\Tailspin.SpaceGame.Web.Tests.csproj]

Build FAILED.

C:\Users\v-jopar\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.Tests\DocumentDBRepository_GetItemsAsyncShould.cs(43,17): error CS1503: Argument 1: cannot convert from 'System.Linq.Expressions.Expression<System.Func<TailSpin.SpaceGame.Web.Models.Score, bool>>' to 'System.Func<TailSpin.SpaceGame.Web.Models.Score, bool>' [C:\Users\v-jopar\mslearn-tailspin-spacegame-web\Tailspin.SpaceGame.Web.Tests\Tailspin.SpaceGame.Web.Tests.csproj]
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:05.81

I checked the history of mslearn-tailspin-spacegame-web/Tailspin.SpaceGame.Web.Tests/DocumentDBRepository_GetItemsAsyncShould.cs and I'm not seeing any recent changes that might be causing the issue. That's as far as my level of expertise can take me. Please have a look at the file when you get a moment. Thanks.

Codespaces running in recovery mode

Going through the training on pipelines using a self-hosted agent. l get the error that it is running in recovery mode due to a configuration error. Noticed i could not run dotnet commands as .NET CLI was not an option. Tried a codespace rebuild 3 times.

dotnet failed with exit code 1, related to SDK version

https://docs.microsoft.com/en-us/learn/modules/create-a-build-pipeline/6-create-the-pipeline

Copying the azure-pipelines.yml contents from the above URL results in a failure at the "Build the project - Release" task. Errors are
##[error]Error: The process '/opt/hostedtoolcache/dotnet/dotnet' failed with exit code 1
##[error]Dotnet command failed with non-zero exit code on the following projects : /home/vsts/work/1/s/Tailspin.SpaceGame.Web/Tailspin.SpaceGame.Web.csproj

I corrected this by updating the below code from

steps:
- task: UseDotNet@2
  displayName: 'Use .NET Core SDK 3.1.100'
  inputs:
    packageType: sdk
    version: 3.1.100

to

steps:
- task: UseDotNet@2
  displayName: 'Use .NET Core SDK 2.2.x'
  inputs:
    packageType: sdk
    version: 2.2.x

npm: command not found

Following the steps for creating a build agent. In step 4, when running sudo ./build-tools.sh I get an error npm: command not found. If I continue on, eventually when creating the build-agent there is no capability listed for npm, which causes in the next step (pushing code changes) the build agent to fail for the same reason.

See below for more details

image

Step 7: Capabilities expects npm directory to be listed

image

Instead I get this

image

Final result (Job failure)

image

what is this issue

          @Kavas2002 please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
@microsoft-github-policy-service agree [company="{your company}"]

Options:

  • (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@microsoft-github-policy-service agree
  • (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
@microsoft-github-policy-service agree company="Microsoft"
Contributor License Agreement

Contribution License Agreement

This Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
and conveys certain license rights to Microsoft Corporation and its affiliates (“Microsoft”) for Your
contributions to Microsoft open source projects. This Agreement is effective as of the latest signature
date below.

  1. Definitions.
    “Code” means the computer software code, whether in human-readable or machine-executable form,
    that is delivered by You to Microsoft under this Agreement.
    “Project” means any of the projects owned or managed by Microsoft and offered under a license
    approved by the Open Source Initiative (www.opensource.org).
    “Submit” is the act of uploading, submitting, transmitting, or distributing code or other content to any
    Project, including but not limited to communication on electronic mailing lists, source code control
    systems, and issue tracking systems that are managed by, or on behalf of, the Project for the purpose of
    discussing and improving that Project, but excluding communication that is conspicuously marked or
    otherwise designated in writing by You as “Not a Submission.”
    “Submission” means the Code and any other copyrightable material Submitted by You, including any
    associated comments and documentation.
  2. Your Submission. You must agree to the terms of this Agreement before making a Submission to any
    Project. This Agreement covers any and all Submissions that You, now or in the future (except as
    described in Section 4 below), Submit to any Project.
  3. Originality of Work. You represent that each of Your Submissions is entirely Your original work.
    Should You wish to Submit materials that are not Your original work, You may Submit them separately
    to the Project if You (a) retain all copyright and license information that was in the materials as You
    received them, (b) in the description accompanying Your Submission, include the phrase “Submission
    containing materials of a third party:” followed by the names of the third party and any licenses or other
    restrictions of which You are aware, and (c) follow any other instructions in the Project’s written
    guidelines concerning Submissions.
  4. Your Employer. References to “employer” in this Agreement include Your employer or anyone else
    for whom You are acting in making Your Submission, e.g. as a contractor, vendor, or agent. If Your
    Submission is made in the course of Your work for an employer or Your employer has intellectual
    property rights in Your Submission by contract or applicable law, You must secure permission from Your
    employer to make the Submission before signing this Agreement. In that case, the term “You” in this
    Agreement will refer to You and the employer collectively. If You change employers in the future and
    desire to Submit additional Submissions for the new employer, then You agree to sign a new Agreement
    and secure permission from the new employer before Submitting those Submissions.
  5. Licenses.
  • Copyright License. You grant Microsoft, and those who receive the Submission directly or
    indirectly from Microsoft, a perpetual, worldwide, non-exclusive, royalty-free, irrevocable license in the
    Submission to reproduce, prepare derivative works of, publicly display, publicly perform, and distribute
    the Submission and such derivative works, and to sublicense any or all of the foregoing rights to third
    parties.
  • Patent License. You grant Microsoft, and those who receive the Submission directly or
    indirectly from Microsoft, a perpetual, worldwide, non-exclusive, royalty-free, irrevocable license under
    Your patent claims that are necessarily infringed by the Submission or the combination of the
    Submission with the Project to which it was Submitted to make, have made, use, offer to sell, sell and
    import or otherwise dispose of the Submission alone or with the Project.
  • Other Rights Reserved. Each party reserves all rights not expressly granted in this Agreement.
    No additional licenses or rights whatsoever (including, without limitation, any implied licenses) are
    granted by implication, exhaustion, estoppel or otherwise.
  1. Representations and Warranties. You represent that You are legally entitled to grant the above
    licenses. You represent that each of Your Submissions is entirely Your original work (except as You may
    have disclosed under Section 3). You represent that You have secured permission from Your employer to
    make the Submission in cases where Your Submission is made in the course of Your work for Your
    employer or Your employer has intellectual property rights in Your Submission by contract or applicable
    law. If You are signing this Agreement on behalf of Your employer, You represent and warrant that You
    have the necessary authority to bind the listed employer to the obligations contained in this Agreement.
    You are not expected to provide support for Your Submission, unless You choose to do so. UNLESS
    REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING, AND EXCEPT FOR THE WARRANTIES
    EXPRESSLY STATED IN SECTIONS 3, 4, AND 6, THE SUBMISSION PROVIDED UNDER THIS AGREEMENT IS
    PROVIDED WITHOUT WARRANTY OF ANY KIND, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY OF
    NONINFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
  2. Notice to Microsoft. You agree to notify Microsoft in writing of any facts or circumstances of which
    You later become aware that would make Your representations in this Agreement inaccurate in any
    respect.
  3. Information about Submissions. You agree that contributions to Projects and information about
    contributions may be maintained indefinitely and disclosed publicly, including Your name and other
    information that You submit with Your Submission.
  4. Governing Law/Jurisdiction. This Agreement is governed by the laws of the State of Washington, and
    the parties consent to exclusive jurisdiction and venue in the federal courts sitting in King County,
    Washington, unless no federal subject matter jurisdiction exists, in which case the parties consent to
    exclusive jurisdiction and venue in the Superior Court of King County, Washington. The parties waive all
    defenses of lack of personal jurisdiction and forum non-conveniens.
  5. Entire Agreement/Assignment. This Agreement is the entire agreement between the parties, and
    supersedes any and all prior agreements, understandings or communications, written or oral, between
    the parties relating to the subject matter hereof. This Agreement may be assigned by Microsoft.

Originally posted by @microsoft-github-policy-service[bot] in #7755 (comment)

Unit tests branch

Couple of comments on the Learn content...

  1. The personal clone already has the branch(es) so the retrieving the branch from upstream is not necessary, though I can see the benefit of getting the upstream since it's the latest code irrespective of when the personal fork was made.
  2. Rather than a fetch/branch you can just use git checkout --track upstream/unit-tests.
  3. The paragraph
    A TRX file is an XML document that contains the results of a test run. It's a popular format for NUnit tests because Visual Studio and other tools can help you visualize the results.
    would be better as
    A TRX file is an XML document that contains the results of a test run. It's a popular format for test results because Visual Studio and other tools can help you visualize the results.
  4. I also hit the issue mentioned in #1288 regarding the SDK version of the pipeline and have created a pull request to fix it

Error while running the pipeline: No hosted parallelism has been purchased or granted.

When starting the pipeline with the standard ASP.NET Core template, the execution fails with the following error:

##[error]No hosted parallelism has been purchased or granted. To request a free parallelism grant, please fill out the following form https://aka.ms/azpipelines-parallelism-request
Pool: Azure Pipelines
Image: ubuntu-latest
Started: Today at 16:51
Duration: 3m 49s

Job preparation parameters
ContinueOnError: False
TimeoutInMinutes: 60
CancelTimeoutInMinutes: 5
Expand:
  MaxConcurrency: 0
  ########## System Pipeline Decorator(s) ##########

  Begin evaluating template 'system-pre-steps.yml'
Evaluating: eq('true', variables['system.debugContext'])
Expanded: eq('true', Null)
Result: False
Evaluating: resources['repositories']['self']
Expanded: Object
Result: True
Evaluating: not(containsValue(job['steps']['*']['task']['id'], '6d15af64-176c-496d-b583-fd2ae21d4df4'))
Expanded: not(containsValue(Object, '6d15af64-176c-496d-b583-fd2ae21d4df4'))
Result: True
Evaluating: resources['repositories']['self']['checkoutOptions']
Result: Object
Finished evaluating template 'system-pre-steps.yml'
********************************************************************************
Template and static variable resolution complete. Final runtime YAML document:
steps:
- task: 6d15af64-176c-496d-b583-fd2ae21d4df4@1
  inputs:
    repository: self


  MaxConcurrency: 0

Does anyone have an idea how I can get this to work?

Unexpected value 'displayName' at azure-pipeline.yml file

Hi,

I am following learning path and while performing an exercise as on the below given section, I am getting error on Azure DevOps at the time of running pipeline at CI build time.
https://docs.microsoft.com/en-us/learn/modules/create-a-build-pipeline/6-create-the-pipeline
Is there any change in the steps or I need to take care or something?

Attached Error msg at build time and azure-pipeline.yml file for refernamce.
image

Any help on azure-pipeline.yml file ..
Thanks,

Error: Failed to create container

Hello, i have this feilure :(

Failed to create container
Error: Command failed: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-root/container-features/0.56.1-1709665519097/Dockerfile-with-features -t vsc-mslearn-tailspin-spacegame-web-42613780e1c4f6c57367b982916b4b4d3ddecc07153e713342c64e7dddd8e4c6 --target dev_containers_target_stage --build-arg UPGRADE_PACKAGES=true --build-arg ARCH=x64 --build-arg AGENT_VERSION=2.206.1 --build-context dev_containers_feature_content_source=/tmp/devcontainercli-root/container-features/0.56.1-1709665519097 --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp /var/lib/docker/codespacemount/workspace/mslearn-tailspin-spacegame-web/.devcontainer
Error code: 1302 (UnifiedContainersErrorFatalCreatingContainer)
Container creation failed.

I attached de error Creation.log
If someone could help me i appreciate it:)

Container build failed

Hello

I am getting the following failure

Failed to create container.
Error: Command failed: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-root/container-features/0.56.1-1709619318612/Dockerfile-with-features -t vsc-mslearn-tailspin-spacegame-web-42613780e1c4f6c57367b982916b4b4d3ddecc07153e713342c64e7dddd8e4c6 --target dev_containers_target_stage --build-arg UPGRADE_PACKAGES=true --build-arg ARCH=x64 --build-arg AGENT_VERSION=2.206.1 --build-context dev_containers_feature_content_source=/tmp/devcontainercli-root/container-features/0.56.1-1709619318612 --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp /var/lib/docker/codespacemount/workspace/mslearn-tailspin-spacegame-web/.devcontainer
Error code: 1302 (UnifiedContainersErrorFatalCreatingContainer)
Container creation failed.

I have attached the creation.log.

Any help would be greatly appreciated.

creation.log

/azure-pipelines.yml (Line: 2, Col: 1): Unexpected value 'ms.openlocfilehash'

I'm following the tutorial and when I need to modify the azure-pipelines.yml and push it, I get this error :

Encountered error(s) while parsing pipeline YAML:
/azure-pipelines.yml (Line: 2, Col: 1): Unexpected value 'ms.openlocfilehash'
/azure-pipelines.yml (Line: 3, Col: 1): Unexpected value 'ms.sourcegitcommit'
/azure-pipelines.yml (Line: 4, Col: 1): Unexpected value 'ms.translationtype'
/azure-pipelines.yml (Line: 5, Col: 1): Unexpected value 'ms.contentlocale'
/azure-pipelines.yml (Line: 6, Col: 1): Unexpected value 'ms.lasthandoff'
/azure-pipelines.yml (Line: 7, Col: 1): Unexpected value 'ms.locfileid'

https://docs.microsoft.com/en-ca/learn/modules/create-a-build-pipeline/6-create-the-pipeline

[![CLA assistant check](https://cla.opensource.microsoft.com/pull/badge/not_signed)](https://cla.opensource.microsoft.com/MicrosoftDocs/mslearn-tailspin-spacegame-web?pullRequest=4640) <br/>Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our [Contributor License Agreement](https://cla.opensource.microsoft.com/MicrosoftDocs/mslearn-tailspin-spacegame-web?pullRequest=4640) before we can accept your contribution.<br/><br/>:x: 001101 [sign now](https://cla.opensource.microsoft.com/MicrosoftDocs/mslearn-tailspin-spacegame-web?pullRequest=4640)<br/><sub>You have signed the CLA already but the status is still pending? Let us [recheck](https://cla.opensource.microsoft.com/check/MicrosoftDocs/mslearn-tailspin-spacegame-web?pullRequest=4640) it.</sub>

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.

❌ 001101 sign now
You have signed the CLA already but the status is still pending? Let us recheck it.

Originally posted by @microsoft-cla[bot] in #4640 (comment)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.