.NET 9.0 : インストール2025/12/04 |
|
.NET をインストールします。 |
|
| [1] | .NET 9.0 のインストールと動作確認です。 |
|
dlp:~ # zypper addrepo --refresh https://packages.microsoft.com/config/opensuse/16/prod.repo Adding repository 'Microsoft Production' .................................................................................[done] Repository 'Microsoft Production' successfully added URI : https://packages.microsoft.com/opensuse/16/prod/ Enabled : Yes GPG Check : Yes Autorefresh : Yes Priority : 99 (default priority) Repository priorities are without effect. All enabled repositories share the same priority.dlp:~ # zypper refresh ..... ..... Do you want to reject the key, trust temporarily, or trust always? [r/t/a/?] (r): a ..... .....
dlp:~ #
dlp:~ # zypper -n install dotnet-sdk-9.0 aspnetcore-runtime-9.0 dotnet --version 9.0.308 # verify to create Hello World dlp:~ # dotnet new console -o helloworld Welcome to .NET 9.0! --------------------- SDK Version: 9.0.308 Telemetry --------- The .NET tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell. Read more about .NET CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry ---------------- Installed an ASP.NET Core HTTPS development certificate. To trust the certificate, run 'dotnet dev-certs https --trust' Learn about HTTPS: https://aka.ms/dotnet-https ---------------- Write your first app: https://aka.ms/dotnet-hello-world Find out what's new: https://aka.ms/dotnet-whats-new Explore documentation: https://aka.ms/dotnet-docs Report issues and find source on GitHub: https://github.com/dotnet/core Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli -------------------------------------------------------------------------------------- The template "Console App" was created successfully. Processing post-creation actions... Restoring /root/helloworld/helloworld.csproj: Restore succeeded.dlp:~ # cd helloworld dlp:~/helloworld # dotnet run Hello, World! |
| [2] | 任意の一般ユーザーで ASP.NET Web App サンプルアプリケーションを動作確認します。 |
|
suse@dlp:~> dotnet new razor -o asp.net Welcome to .NET 9.0! --------------------- SDK Version: 9.0.308 Telemetry --------- The .NET tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell. Read more about .NET CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry ---------------- Installed an ASP.NET Core HTTPS development certificate. To trust the certificate, run 'dotnet dev-certs https --trust' Learn about HTTPS: https://aka.ms/dotnet-https ---------------- Write your first app: https://aka.ms/dotnet-hello-world Find out what's new: https://aka.ms/dotnet-whats-new Explore documentation: https://aka.ms/dotnet-docs Report issues and find source on GitHub: https://github.com/dotnet/core Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli -------------------------------------------------------------------------------------- An issue was encountered verifying workloads. For more information, run "dotnet workload update". The template "ASP.NET Core Web App (Razor Pages)" was created successfully. This template contains technologies from parties other than Microsoft, see https://aka.ms/aspnetcore/9.0-third-party-notices for details. Processing post-creation actions... Restoring /home/suse/asp.net/asp.net.csproj: Restore succeeded.suse@dlp:~> cd asp.net suse@dlp:~/asp.net> dotnet run --urls=http://0.0.0.0:5000/
Using launch settings from /home/suse/asp.net/Properties/launchSettings.json...
Building...
warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35]
No XML encryptor configured. Key {83382cab-680c-4f4e-97d0-3eb87965a193} may be persisted to storage in unencrypted form.
info: Microsoft.Hosting.Lifetime[14]
Now listening on: http://0.0.0.0:5000
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Development
info: Microsoft.Hosting.Lifetime[0]
Content root path: /home/suse/asp.net
|
| 任意のクライアントコンピューターで Web アクセスして、以下のようなページが表示されれば OK です。 |
|
| Sponsored Link |
|
|