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

Fail to run azd deploy for samples DatabaseContainers, DatabaseMigrations, VolumeMount #596

Open
Menghua1 opened this issue Nov 28, 2024 · 0 comments

Comments

@Menghua1
Copy link

Describe the issue:
Running the azd deploy command fails with the following error message:
Image

Repro Steps:

  1. Clone code.
  2. Run command cd samples/DatabaseContainers.
  3. Run command azd init.
  4. Run command azd up.

Environment:

Expected behavior:
azd deploy command can be executed successfully.

Suggestion:
There are two solutions:

  1. Add the following code to the <ItemGroup> tag in the DatabaseContainers.ApiService.csproj, VolumeMount.BlazorWeb.csproj, DatabaseMigrations.ApiModel.csproj and DatabaseMigrations.ApiService.csproj:
<PackageReference Include="System.Private.Uri" Version="4.3.2" />
  1. Add the following code in the <PropertyGroup> tag in the DatabaseContainers.ApiService.csproj, VolumeMount.BlazorWeb.csproj, DatabaseMigrations.ApiModel.csproj, DatabaseMigrations.ApiService.csproj and DatabaseMigrations.MigrationService.csproj:
<NoWarn>NU1903;NU1902</NoWarn>

@rajeshkamal5050, @vhvb1989 for notification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant