2017-08-11 19 views
3

2xプロジェクトの単純なソリューションがあります。 - .NET標準1.6クラスライブラリ - テスト用にxUnitを使用する.NET 4.7フレームワーククラスライブラリ。私がしようとすると、ローカル(VS2017で)ビルドするとき.NET 4.7 .NET Standard 1.6プロジェクトを参照するときにxunitテストプロジェクトが構築されない

enter image description here

は今、すべてがOKです。

私はVisual Studioのオンライン/ Team Servicesの上に構築するとき、私はエラーのヒープを得る: -

[command]"C:\Program Files\dotnet\dotnet.exe" build d:\a\1\s\src\Hornet.Services\Hornet.Services.csproj -c release /p:Version=1.0.0 
Microsoft(R) Build Engine version 15.1.1012.6693 
Copyright(C) Microsoft Corporation.All rights reserved. 

Hornet.Services -> d:\a\1\s\src\Hornet.Services\bin\release\netstandard1.6\Hornet.Services.dll 

Build succeeded. 
    0 Warning(s) 
    0 Error(s) 

/\ ___作品!私は VSTSを考えるながら、同じ溶液中で構築する(未NS1.6版)

次のプロジェクトは... DOTNET情報の

[command]"C:\Program Files\dotnet\dotnet.exe" build d:\a\1\s\tests\Hornet.Services.Tests\Hornet.Services.Tests.csproj -c release /p:Version= 1.0.0 
Microsoft (R) Build Engine version 15.1.1012.6693 
Copyright (C) Microsoft Corporation.All rights reserved. 

Hornet.Services -> d:\a\1\s\src\Hornet.Services\bin\release\netstandard1.6\Hornet.Services.dll 
C:\Program Files\dotnet\sdk\1.0.4\Microsoft.Common.CurrentVersion.targets(1964,5): warning MSB3245: Could not resolve this reference.Could not locate the assembly "Castle.Core, Version=4.1.1.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL". 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\tests\Hornet.Services.Tests\Hornet.Services.Tests.csproj] 
C:\Program Files\dotnet\sdk\1.0.4\Microsoft.Common.CurrentVersion.targets(1964,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "FizzWare.NBuilder, Version=5.0.0.138, Culture=neutral, processorArchitecture=MSIL". 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\tests\Hornet.Services.Tests\Hornet.Services.Tests.csproj] 
C:\Program Files\dotnet\sdk\1.0.4\Microsoft.Common.CurrentVersion.targets(1964,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "FluentValidation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7de548da2fbae0f0, processorArchitecture=MSIL". 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\tests\Hornet.Services.Tests\Hornet.Services.Tests.csproj] 
C:\Program Files\dotnet\sdk\1.0.4\Microsoft.Common.CurrentVersion.targets(1964,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Google.Apis, Version=1.28.0.0, Culture=neutral, PublicKeyToken=4b01fa6e34db77ab, processorArchitecture=MSIL". 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\tests\Hornet.Services.Tests\Hornet.Services.Tests.csproj] 
C:\Program Files\dotnet\sdk\1.0.4\Microsoft.Common.CurrentVersion.targets(1964,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Google.Apis.Core, Version=1.28.0.0, Culture=neutral, PublicKeyToken=4b01fa6e34db77ab, processorArchitecture=MSIL". 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\tests\Hornet.Services.Tests\Hornet.Services.Tests.csproj] 
C:\Program Files\dotnet\sdk\1.0.4\Microsoft.Common.CurrentVersion.targets(1964,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Google.Apis.PlatformServices, Version=1.28.0.0, Culture=neutral, PublicKeyToken=4b01fa6e34db77ab, processorArchitecture=MSIL". 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\tests\Hornet.Services.Tests\Hornet.Services.Tests.csproj] 
C:\Program Files\dotnet\sdk\1.0.4\Microsoft.Common.CurrentVersion.targets(1964,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Google.Apis.QPXExpress.v1, Version=1.28.0.554, Culture=neutral, PublicKeyToken=4b01fa6e34db77ab, processorArchitecture=MSIL". 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\tests\Hornet.Services.Tests\Hornet.Services.Tests.csproj] 

.. <lots more snipped> 

私のローカルバージョンは

.NET Command Line Tools (1.0.4) 

Product Information: 
Version:   1.0.4 
Commit SHA-1 hash: af1e6684fd 

Runtime Environment: 
OS Name:  Windows 
OS Version: 10.0.15063 
OS Platform: Windows 
RID:   win10-x64 
Base Path: C:\Program Files\dotnet\sdk\1.0.4 

です使用中1.0.2

============================================================================== 
Task   : .NET Core 
Description : Build, test and publish using dotnet core command-line. 
Version  : 1.0.2 
Author  : Microsoft Corporation 
Help   : [More Information] (https://go.microsoft.com/fwlink/?linkid=832194) 

誰でも助けて?

私は私の答えを見つけたと信じて
+0

エージェントにVS2017プレビューをインストールしてみてください – Mardoxx

+0

「エージェントキュー:Hosted VS2017」を意味しますか?それが現在の価値観です。 –

+0

かなり!私はvs2017のプレビューバージョンがインストールされているプラ​​イベートエージェントを作成することを意味しました!困難ではありませんが、それを稼働させるための愚か者のビット!ここでのリリースノートを見ると、https://www.visualstudio.com/en-us/news/releasenotes/vs2017-preview-relnotes#dotnetcoreimprovements15P3フレームワーク/標準/コア相互運用機能がプレビュー3でのみ導入されました。これを可能にするためにどのようなツールが更新されたのか不明です。うまくいけば、知っている人があなたを助けることができます。その間に、VSTSタスクを作成して、ビルドステップの前に最新のプレビューネットコアツールをインストールし、それが役立つことを確認することができます。 – Mardoxx

答えて

2

- 私はすべてのの.NET COREを対象に、以下の手順を実行しようとしていた>:

  1. テスト
  2. パック
を構築
  • を復元

    これらはすべて.NETコアステップです。テストプロジェクトは.NET 4.7プロジェクトです。

    私はテストプロジェクトをビルドしていませんでした...なぜそれがエラーになっていたのですか?畜生。

    非常に恥ずかしいです。

    したがって、TL; DR;/Take Takeここでは、VSTS Build Stepsを二重にチェックして、それらが正しいアイテムをターゲットにしていることを確認します。

  • 関連する問題