关于Quartz.NET 3.0.7版本源码编译报错问题 求各位大佬帮忙看看qwq

2019-11-28 14:23发布

问题:

在Quartz.NET的官网上下载了源码,然后到VS2017中编译出现如下问题

然后再 GitHub 上,作者说只要运行源码 zip 包中的 build.cmd 就可以行

但是我在运行了 build.cmd 之后,还是报错

跪求解决过此问题的大佬指点一下

回答1:

  1. cd 到源代码目录
  2. 切换到v3.0.7
  3. 执行build.cmd
git clone git@github.com:quartznet/quartznet.git
git branch build v3.0.7
git checkout build
.\build.cmd
Feeds used:
  C:\Users\calvin\.nuget\packages\
  https://api.nuget.org/v3/index.json



Attempting to gather dependency information for package 'FAKE.4.64.4' with respect to project 'packages', targeting 'Any,Version=v0.0'
Gathering dependency information took 2.03 sec
Attempting to resolve dependencies for package 'FAKE.4.64.4' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'FAKE.4.64.4'
Resolved actions to install package 'FAKE.4.64.4'
Retrieving package 'FAKE 4.64.4' from 'api.nuget.org'.
  GET https://api.nuget.org/v3-flatcontainer/fake/4.64.4/fake.4.64.4.nupkg
  OK https://api.nuget.org/v3-flatcontainer/fake/4.64.4/fake.4.64.4.nupkg 934ms
Installing FAKE 4.64.4.
Adding package 'FAKE.4.64.4' to folder 'D:\sourcecode\quartznet\packages'
Added package 'FAKE.4.64.4' to folder 'D:\sourcecode\quartznet\packages'
Successfully installed 'FAKE 4.64.4' to packages
Executing nuget actions took 8.01 sec
C:\Program Files\Git\cmd\git.exe log --oneline -1
Building project with version: LocalBuild
Shortened DependencyGraph for Target Test:
<== Test
   <== Build
      <== GenerateAssemblyInfo
         <== Clean

The running order is:
  - Clean
  - GenerateAssemblyInfo
  - Build
  - Test
Running build with 1 worker
Starting Target: Clean
Finished Target: Clean
Starting Target: GenerateAssemblyInfo (==> Clean, Clean, Clean)
Created AssemblyInfo file "./src/AssemblyInfo.cs".
Finished Target: GenerateAssemblyInfo
Starting Target: Build (==> GenerateAssemblyInfo, GenerateAssemblyInfo)
dotnet "build" "Quartz.sln" --configuration Release
用于 .NET Core 的 Microsoft (R) 生成引擎版本 16.4.0-preview-19528-01+3745451f4
版权所有(C) Microsoft Corporation。保留所有权利。

  D:\sourcecode\quartznet\src\Quartz.Jobs\Quartz.Jobs.csproj 的还原在 24.86 sec 内完成。
  D:\sourcecode\quartznet\src\Quartz.Plugins\Quartz.Plugins.csproj 的还原在 24.86 sec 内完成。
  D:\sourcecode\quartznet\src\Quartz.Examples\Quartz.Examples.csproj 的还原在 30.13 sec 内完成。
  D:\sourcecode\quartznet\src\Quartz.Serialization.Json\Quartz.Serialization.Json.csproj 的还原在 6.42 sec 内完成。
  D:\sourcecode\quartznet\src\Quartz.Plugins.TimeZoneConverter\Quartz.Plugins.TimeZoneConverter.csproj 的还原在 31.98 sec 内完成。
  D:\sourcecode\quartznet\src\Quartz\Quartz.csproj 的还原在 5.23 sec 内完成。
  D:\sourcecode\quartznet\src\Quartz.Server\Quartz.Server.csproj 的还原在 43.71 sec 内完成。
  D:\sourcecode\quartznet\src\Quartz.Tests.Unit\Quartz.Tests.Unit.csproj 的还原在 40.47 sec 内完成。
  D:\sourcecode\quartznet\src\Quartz.Tests.Integration\Quartz.Tests.Integration.csproj 的还原在 47.14 sec 内完成。
  你正在使用 .NET Core 的预览版。请查看 https://aka.ms/dotnet-core-preview
  你正在使用 .NET Core 的预览版。请查看 https://aka.ms/dotnet-core-preview
  你正在使用 .NET Core 的预览版。请查看 https://aka.ms/dotnet-core-preview
  你正在使用 .NET Core 的预览版。请查看 https://aka.ms/dotnet-core-preview
  Quartz -> D:\sourcecode\quartznet\build\Release\Quartz\net452\Quartz.dll
  Quartz -> D:\sourcecode\quartznet\build\Release\Quartz\netstandard2.0\Quartz.dll
  Quartz.Serialization.Json -> D:\sourcecode\quartznet\build\Release\Quartz.Serialization.Json\netstandard2.0\Quartz.Serialization.Json.dll
  Quartz.Jobs -> D:\sourcecode\quartznet\build\Release\Quartz.Jobs\netstandard2.0\Quartz.Jobs.dll
  Quartz.Serialization.Json -> D:\sourcecode\quartznet\build\Release\Quartz.Serialization.Json\net452\Quartz.Serialization.Json.dll
  Quartz.Jobs -> D:\sourcecode\quartznet\build\Release\Quartz.Jobs\net452\Quartz.Jobs.dll
  Quartz.Plugins -> D:\sourcecode\quartznet\build\Release\Quartz.Plugins\net452\Quartz.Plugins.dll
  Quartz.Plugins -> D:\sourcecode\quartznet\build\Release\Quartz.Plugins\netstandard2.0\Quartz.Plugins.dll
  Quartz.Tests.Integration -> D:\sourcecode\quartznet\build\Release\Quartz.Tests.Integration\netcoreapp2.0\Quartz.Tests.Integration.dll
  Quartz.Examples -> D:\sourcecode\quartznet\build\Release\Quartz.Examples\net452\Quartz.Examples.exe
  Quartz.Plugins.TimeZoneConverter -> D:\sourcecode\quartznet\build\Release\Quartz.Plugins.TimeZoneConverter\net452\Quartz.Plugins.TimeZoneConverter.dll
  Quartz.Tests.Integration -> D:\sourcecode\quartznet\build\Release\Quartz.Tests.Integration\net452\Quartz.Tests.Integration.dll
  Quartz.Server -> D:\sourcecode\quartznet\build\Release\Quartz.Server\netcoreapp2.1\Quartz.Server.dll
  Quartz.Plugins.TimeZoneConverter -> D:\sourcecode\quartznet\build\Release\Quartz.Plugins.TimeZoneConverter\netstandard2.0\Quartz.Plugins.TimeZoneConverter.dll
  Quartz.Examples -> D:\sourcecode\quartznet\build\Release\Quartz.Examples\netcoreapp2.0\Quartz.Examples.dll
  Quartz.Server -> D:\sourcecode\quartznet\build\Release\Quartz.Server\net452\Quartz.Server.exe
  Quartz.Tests.Unit -> D:\sourcecode\quartznet\build\Release\Quartz.Tests.Unit\netcoreapp2.0\Quartz.Tests.Unit.dll
  Quartz.Tests.Unit -> D:\sourcecode\quartznet\build\Release\Quartz.Tests.Unit\net452\Quartz.Tests.Unit.dll

已成功生成。
    0 个警告
    0 个错误

已用时间 00:02:43.58
Finished Target: Build
Starting Target: Test (==> Build)
 --- Test not implemented ---
Finished Target: Test

---------------------------------------------------------------------
Build Time Report
---------------------------------------------------------------------
Target                 Duration
------                 --------
Clean                  00:00:00.0078844
GenerateAssemblyInfo   00:00:00.0275734
Build                  00:02:46.3614614
Test                   00:00:00.0013923
Total:                 00:02:46.5590233
---------------------------------------------------------------------
Status:                Ok
---------------------------------------------------------------------