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

Error with EXE project with deactivated build configuration #814

Open
anorisoft opened this issue Mar 18, 2021 · 1 comment
Open

Error with EXE project with deactivated build configuration #814

anorisoft opened this issue Mar 18, 2021 · 1 comment

Comments

@anorisoft
Copy link

anorisoft commented Mar 18, 2021

I have one of my projects console test projects. These projects build an EXE. In the solution configuration the build is disabled for release. Now there is an error on abbveyor the file project.assets.json is not found.

Project has an output type of exe: Anori.ExpressionObservers.ConsoleTests
Microsoft (R) Build Engine version 16.9.0+57a23d249 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.
C:\Program Files\dotnet\sdk\5.0.201\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(241,5): error NETSDK1004: Assets file 'C:\projects\anori-expressionobservers\Tests\Anori.ExpressionObservers.ConsoleTests\obj\project.assets.json' not found. Run a NuGet package restore to generate this file. [C:\projects\anori-expressionobservers\Tests\Anori.ExpressionObservers.ConsoleTests\Anori.ExpressionObservers.ConsoleTests.csproj]
Cake.exe : An error occurred when executing task 'DotNetCore-Build'.
At line:1 char:1
+ & "C:\projects\anori-expressionobservers\tools\Cake\Cake.exe" "recipe ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (An error occurr...NetCore-Build'.:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
@AdmiringWorm
Copy link
Member

@anorisoft I don't suppose that you have a link to both the failing build and the test project?

I know there are problems when only .NET 5.0 is being targeted, as it isn't correctly identified as a .NET Core compatible build (build I have previously only seen issues with that being related to coverage reports).

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

2 participants