如何使用 azure 管道为我的 aspnetcore 3.0 项目(发布到 IIS)启用 CI/CD

米克·鲁斯滕霍文

我正在尝试为我的 aspnetcore 3.0 项目构建一个“构建管道”。我已经有一个 IIS 服务正在运行并将其添加到部署组。

关于该应用程序: - ASP.NET Core 3.0.0-preview8 - 多个 Web 项目,一个 DAL 项目和一个 Core 项目 - 一个用于多个网站项目的 git repo

我需要什么?- 构建项目 - 测试项目 - 将项目发布到 IIS - 确保将项目绑定到正确的 IIS 绑定(例如 api 项目应该绑定到 API IIS 网站)

我试过使用一些模板,但它们没有用。我已经尝试过手动操作。我尝试了多种配置。

# ASP.NET Core (.NET Framework)
# Build and test ASP.NET Core projects targeting the full .NET Framework.
# Add steps that publish symbols, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core

trigger:
- master

pool:
  vmImage: 'windows-latest'

variables:
  solution: '**/*.sln'
  buildPlatform: 'Any CPU'
  buildConfiguration: 'Release'

steps:
- task: UseDotNet@2
  inputs:
    packageType: 'sdk'
    version: '3.x'
    includePreviewVersions: true
- task: DotNetCoreCLI@2
  inputs:
    command: 'restore'
    projects: '**/*.csproj'
    feedsToUse: 'select'
    vstsFeed: '5739229b-68fa-4856-aa1c-1b52808407ae'
    noCache: true
- task: VSTest@2
  inputs:
    platform: '$(buildPlatform)'
    configuration: '$(buildConfiguration)'


- task: DotNetCoreCLI@2
  inputs:
    command: publish
    publishWebProjects: True
    arguments: '--configuration $(BuildConfiguration) --output $(Build.ArtifactStagingDirectory)'
    zipAfterPublish: True
- task: IISWebAppDeploymentOnMachineGroup@0
  inputs:
    WebSiteName: 'teachers.dapperdino.co.uk'
    VirtualApplication: 'teachers.dapperdino.co.uk'
    Package: '$(System.DefaultWorkingDirectory)\**\*.zip'

我希望该网站被发布,但事实并非如此。输出是:

##[section]Starting: DotNetCoreCLI
==============================================================================
Task         : .NET Core
Description  : Build, test, package, or publish a dotnet application, or run a custom dotnet command
Version      : 2.156.1
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/dotnet-core-cli
==============================================================================
[command]C:\windows\system32\chcp.com 65001
Active code page: 65001
[command]C:\hostedtoolcache\windows\dotnet\dotnet.exe publish d:\a\1\s\DapperDino.Web.Ideas\DapperDino.Web.Ideas.csproj --configuration Release --output d:\a\1\a\DapperDino.Web.Ideas
Microsoft (R) Build Engine version 16.3.0-preview-19377-01+dd8019d9e for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  Restore completed in 197.49 ms for d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj.
  Restore completed in 296.18 ms for d:\a\1\s\DapperDino.Core\DapperDino.Core.csproj.
  Restore completed in 124.99 ms for d:\a\1\s\DapperDino.Jobs\DapperDino.Jobs.csproj.
  Restore completed in 133.69 ms for d:\a\1\s\DapperDino.Web.Ideas\DapperDino.Web.Ideas.csproj.
  You are using a preview version of .NET Core. See: https://aka.ms/dotnet-core-preview
  You are using a preview version of .NET Core. See: https://aka.ms/dotnet-core-preview
C:\hostedtoolcache\windows\dotnet\sdk\3.0.100-preview8-013656\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Microsoft.AspNetCore.Identity.EntityFrameworkCore". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
C:\hostedtoolcache\windows\dotnet\sdk\3.0.100-preview8-013656\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Microsoft.Extensions.Identity.Stores". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
ApplicationDbContext.cs(2,17): error CS0234: The type or namespace name 'AspNetCore' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
Models\ApplicationUser.cs(3,17): error CS0234: The type or namespace name 'AspNetCore' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
Roles.cs(4,17): error CS0234: The type or namespace name 'AspNetCore' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
Roles.cs(13,30): error CS0246: The type or namespace name 'IdentityRole' could not be found (are you missing a using directive or an assembly reference?) [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
ApplicationDbContext.cs(9,41): error CS0246: The type or namespace name 'IdentityDbContext<>' could not be found (are you missing a using directive or an assembly reference?) [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
Models\ApplicationUser.cs(9,36): error CS0246: The type or namespace name 'IdentityUser' could not be found (are you missing a using directive or an assembly reference?) [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
ApplicationDbContext.cs(21,33): error CS0115: 'ApplicationDbContext.OnModelCreating(ModelBuilder)': no suitable method found to override [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
ApplicationDbContext.cs(11,76): error CS0311: The type 'DapperDino.DAL.ApplicationDbContext' cannot be used as type parameter 'TContext' in the generic type or method 'DbContextOptions<TContext>'. There is no implicit reference conversion from 'DapperDino.DAL.ApplicationDbContext' to 'Microsoft.EntityFrameworkCore.DbContext'. [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
Roles.cs(8,35): error CS0246: The type or namespace name 'IdentityRole' could not be found (are you missing a using directive or an assembly reference?) [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
##[error]Error: The process 'C:\hostedtoolcache\windows\dotnet\dotnet.exe' failed with exit code 1
[command]C:\hostedtoolcache\windows\dotnet\dotnet.exe publish d:\a\1\s\DapperDino.Web.RoleManager\DapperDino.Web.RoleManager.csproj --configuration Release --output d:\a\1\a\DapperDino.Web.RoleManager
Microsoft (R) Build Engine version 16.3.0-preview-19377-01+dd8019d9e for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  Restore completed in 26.28 ms for d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj.
  Restore completed in 28.19 ms for d:\a\1\s\DapperDino.Core\DapperDino.Core.csproj.
  Restore completed in 304.79 ms for d:\a\1\s\DapperDino.Web.RoleManager\DapperDino.Web.RoleManager.csproj.
  You are using a preview version of .NET Core. See: https://aka.ms/dotnet-core-preview
  You are using a preview version of .NET Core. See: https://aka.ms/dotnet-core-preview
C:\hostedtoolcache\windows\dotnet\sdk\3.0.100-preview8-013656\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Microsoft.AspNetCore.Identity.EntityFrameworkCore". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
C:\hostedtoolcache\windows\dotnet\sdk\3.0.100-preview8-013656\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Microsoft.Extensions.Identity.Stores". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
ApplicationDbContext.cs(2,17): error CS0234: The type or namespace name 'AspNetCore' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
Models\ApplicationUser.cs(3,17): error CS0234: The type or namespace name 'AspNetCore' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
Roles.cs(4,17): error CS0234: The type or namespace name 'AspNetCore' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
ApplicationDbContext.cs(9,41): error CS0246: The type or namespace name 'IdentityDbContext<>' could not be found (are you missing a using directive or an assembly reference?) [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
ApplicationDbContext.cs(21,33): error CS0115: 'ApplicationDbContext.OnModelCreating(ModelBuilder)': no suitable method found to override [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
ApplicationDbContext.cs(11,76): error CS0311: The type 'DapperDino.DAL.ApplicationDbContext' cannot be used as type parameter 'TContext' in the generic type or method 'DbContextOptions<TContext>'. There is no implicit reference conversion from 'DapperDino.DAL.ApplicationDbContext' to 'Microsoft.EntityFrameworkCore.DbContext'. [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
Roles.cs(13,30): error CS0246: The type or namespace name 'IdentityRole' could not be found (are you missing a using directive or an assembly reference?) [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
Models\ApplicationUser.cs(9,36): error CS0246: The type or namespace name 'IdentityUser' could not be found (are you missing a using directive or an assembly reference?) [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
Roles.cs(8,35): error CS0246: The type or namespace name 'IdentityRole' could not be found (are you missing a using directive or an assembly reference?) [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
##[error]Error: The process 'C:\hostedtoolcache\windows\dotnet\dotnet.exe' failed with exit code 1
[command]C:\hostedtoolcache\windows\dotnet\dotnet.exe publish d:\a\1\s\DapperDino.Web.Teacher\DapperDino.Web.Teacher.csproj --configuration Release --output d:\a\1\a\DapperDino.Web.Teacher
Microsoft (R) Build Engine version 16.3.0-preview-19377-01+dd8019d9e for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  Restore completed in 24.95 ms for d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj.
  Restore completed in 30.07 ms for d:\a\1\s\DapperDino.Core\DapperDino.Core.csproj.
  Restore completed in 2.06 ms for d:\a\1\s\DapperDino.Jobs\DapperDino.Jobs.csproj.
  Restore completed in 414.17 ms for d:\a\1\s\DapperDino.Web.Teacher\DapperDino.Web.Teacher.csproj.
  You are using a preview version of .NET Core. See: https://aka.ms/dotnet-core-preview
  You are using a preview version of .NET Core. See: https://aka.ms/dotnet-core-preview
C:\hostedtoolcache\windows\dotnet\sdk\3.0.100-preview8-013656\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Microsoft.AspNetCore.Identity.EntityFrameworkCore". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
C:\hostedtoolcache\windows\dotnet\sdk\3.0.100-preview8-013656\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Microsoft.Extensions.Identity.Stores". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
ApplicationDbContext.cs(2,17): error CS0234: The type or namespace name 'AspNetCore' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
Models\ApplicationUser.cs(3,17): error CS0234: The type or namespace name 'AspNetCore' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
Roles.cs(4,17): error CS0234: The type or namespace name 'AspNetCore' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
ApplicationDbContext.cs(9,41): error CS0246: The type or namespace name 'IdentityDbContext<>' could not be found (are you missing a using directive or an assembly reference?) [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
ApplicationDbContext.cs(21,33): error CS0115: 'ApplicationDbContext.OnModelCreating(ModelBuilder)': no suitable method found to override [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
ApplicationDbContext.cs(11,76): error CS0311: The type 'DapperDino.DAL.ApplicationDbContext' cannot be used as type parameter 'TContext' in the generic type or method 'DbContextOptions<TContext>'. There is no implicit reference conversion from 'DapperDino.DAL.ApplicationDbContext' to 'Microsoft.EntityFrameworkCore.DbContext'. [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
Roles.cs(13,30): error CS0246: The type or namespace name 'IdentityRole' could not be found (are you missing a using directive or an assembly reference?) [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
Models\ApplicationUser.cs(9,36): error CS0246: The type or namespace name 'IdentityUser' could not be found (are you missing a using directive or an assembly reference?) [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
Roles.cs(8,35): error CS0246: The type or namespace name 'IdentityRole' could not be found (are you missing a using directive or an assembly reference?) [d:\a\1\s\DapperDino.DAL\DapperDino.DAL.csproj]
##[error]Error: The process 'C:\hostedtoolcache\windows\dotnet\dotnet.exe' failed with exit code 1
##[error]Dotnet command failed with non-zero exit code on the following projects : d:\a\1\s\DapperDino.Web.Ideas\DapperDino.Web.Ideas.csproj,d:\a\1\s\DapperDino.Web.RoleManager\DapperDino.Web.RoleManager.csproj,d:\a\1\s\DapperDino.Web.Teacher\DapperDino.Web.Teacher.csproj
##[section]Finishing: DotNetCoreCLI

csproj 文件:DAL:

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>netcoreapp3.0</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <Compile Remove="Migrations\20181223043623_test.cs" />
    <Compile Remove="Migrations\20190103040438_orders.cs" />
    <Compile Remove="Migrations\20190602225729_test-migration.cs" />
    <Compile Remove="Migrations\20190602225729_test-migration.Designer.cs" />
    <Compile Remove="Migrations\20190622040133_product-download-link.cs" />
    <Compile Remove="Migrations\20190622040133_product-download-link.Designer.cs" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="3.0.0-preview8.19405.7" />
    <PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="3.0.0-preview8.19405.7" />
    <PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.0.0-preview8.19405.11" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="3.0.0-preview8.19405.11">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
    </PackageReference>
    <PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.0.0-preview8.19405.11" />
  </ItemGroup>


  <ItemGroup>
    <Folder Include="Policies\" />
  </ItemGroup>

</Project>

核:

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>netcoreapp3.0</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <ProjectReference Include="..\DapperDino.DAL\DapperDino.DAL.csproj" />
  </ItemGroup>

  <ItemGroup>
    <Folder Include="Services\" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="DSharpPlus" Version="3.2.3" />
  </ItemGroup>

</Project>

工作:

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>netcoreapp3.0</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Hangfire" Version="1.7.6" />
    <PackageReference Include="Microsoft.AspNetCore.SignalR" Version="1.1.0" />
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\DapperDino.DAL\DapperDino.DAL.csproj" />
  </ItemGroup>

</Project>

想法

<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>netcoreapp3.0</TargetFramework>
    <LangVersion>7.3</LangVersion>
    <UserSecretsId>aspnet-DapperDino.Web.Ideas-D02C48DF-E6AA-418E-B7D1-0F9B0601AF20</UserSecretsId>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="3.0.0-preview8.19405.7" />
    <PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="3.0.0-preview8.19405.7" />
    <PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="3.0.0-preview8.19405.7" />
    <PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.0.0-preview8.19405.11" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.0.0-preview8.19405.11" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="3.0.0-preview8.19405.11">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
    </PackageReference>
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\DapperDino.Core\DapperDino.Core.csproj" />
    <ProjectReference Include="..\DapperDino.DAL\DapperDino.DAL.csproj" />
    <ProjectReference Include="..\DapperDino.Jobs\DapperDino.Jobs.csproj" />
  </ItemGroup>

</Project>

角色经理:

<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>netcoreapp3.0</TargetFramework>
    <LangVersion>7.3</LangVersion>
    <UserSecretsId>aspnet-DapperDino.Web.RoleManager-DECFF1C6-FEE3-483B-9C80-C0D6BF8579BD</UserSecretsId>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="3.0.0-preview8.19405.7" />
    <PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="3.0.0-preview8.19405.7" />
    <PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="3.0.0-preview8.19405.7" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.0.0-preview8.19405.11" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="3.0.0-preview8.19405.11">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
    </PackageReference>
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\DapperDino.Core\DapperDino.Core.csproj" />
    <ProjectReference Include="..\DapperDino.DAL\DapperDino.DAL.csproj" />
  </ItemGroup>

  <ItemGroup>
    <Folder Include="Data\" />
  </ItemGroup>

</Project>

学生:

<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>netcoreapp3.0</TargetFramework>
    <LangVersion>7.3</LangVersion>
    <UserSecretsId>aspnet-DapperDino.Web.Student-BFD60CA3-10A3-4BAA-B5CE-9B284B72E3EC</UserSecretsId>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="3.0.0-preview8.19405.7" />
    <PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="3.0.0-preview8.19405.7" />
    <PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="3.0.0-preview8.19405.7" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.0.0-preview8.19405.11" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="3.0.0-preview8.19405.11">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
    </PackageReference>
  </ItemGroup>

  <ItemGroup>
    <Folder Include="Data\" />
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\DapperDino.DAL\DapperDino.DAL.csproj" />
  </ItemGroup>

</Project>

老师:

<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>netcoreapp3.0</TargetFramework>
    <LangVersion>7.3</LangVersion>
    <UserSecretsId>aspnet-DapperDino.Web.Teacher-CEB46A90-EAD8-4B53-974D-70B4CED675C7</UserSecretsId>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Blazor.Extensions.SignalR" Version="0.2.0" />
    <PackageReference Include="DSharpPlus" Version="3.2.3" />
    <PackageReference Include="Markdig" Version="0.17.1" />
    <PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="3.0.0-preview8.19405.7" />
    <PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="3.0.0-preview8.19405.7" />
    <PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="3.0.0-preview8.19405.7" />
    <PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="3.0.0-preview8.19405.7" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="3.0.0-preview8.19405.11">
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
      <PrivateAssets>all</PrivateAssets>
    </PackageReference>
    <PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.0.0-preview8.19405.11" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="3.0.0-preview8.19405.11">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
    </PackageReference>
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\DapperDino.Core\DapperDino.Core.csproj" />
    <ProjectReference Include="..\DapperDino.DAL\DapperDino.DAL.csproj" />
    <ProjectReference Include="..\DapperDino.Jobs\DapperDino.Jobs.csproj" />
  </ItemGroup>

</Project>
米克·鲁斯滕霍文

愚蠢的我忘了签到,从预览版 7 切换到 8 的包版本....

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

如何在 Azure 上为 Angular 项目创建发布管道

使用Azure DevOps CICD管道将旧版.net框架控制台应用程序部署到Prem服务器上

如何使用Azure管道和诗歌发布到PyPI

使用0x80070005将.net核心项目发布到iis时出现HTTP错误500.19

ng build --prod 在 Azure CICD 管道中不起作用

我如何使用intellij将组织项目发布到github

如何在CICD期间更新ADF管道级参数

如何将Azure管道测试结果发布到SonarCloud

如何使用.NET数据工厂SDK(C#)在启用了DeVOPS GIT存储库的Azure数据工厂中发布管道?

如何启用Azure管道使用Git签出子模块?

如何将Visual Studio Azure Functions项目(多个功能)发布到不同的Azure Function应用

您将如何使用 Azure 管道为每个项目设置默认的 dockerfile 来处理它们?

如何在Azure-DevOPS发布管道中进行带有XML转换的IIS部署?

如何使用 powershell 使用 azure 发布管道变量?

发布到Azure时的类型或命名空间名称“ AspNetCore”不存在错误

ASPNETCORE在VS 2015中本地工作,但是发布到Azure时出现错误500

使用aspnetcore 2.2联合Azure AD登录后,User.Identity.Name为空

如果源存储库为Gitlab,如何使用AWS CodePipeline进行CICD

使用sbt将scala项目发布到Azure提要:无法找到凭据

我在哪里为Bitbucket上托管的Maven项目上的Azure DevOps管道设置Nexus凭据?

将asp.net核心发布到Azure ...要在云中使用Kestrel而不是IIS

如何在 Azure DevOps 发布管道的测试项目中替换值 appsettings.json?

如何使用Azure管道发布Web应用程序?

如何使用Visual Studio 2017将ASP.NET Web API 2项目发布到IIS 8.5?

如何使用Azure DevOps发布管道将Java应用程序部署到Tomcat 8 App Service?

如何在我的休眠类中启用 c3p0 日志记录

通过 Azure Devops 进行 MDS 的 CICD

如何在 Azure Devops 发布管道中为已构建的 APK 重新签名/更改包 ID

如何在Azure DevOps中为Node.js Web应用程序创建发布管道?