Replies: 6 comments
-
Are you running the same version of the .NET CLI on all environments? |
Beta Was this translation helpful? Give feedback.
-
I run the .\MSBuild.exe -version command and I got this: I am not sure if that is what you need, how can I know the version of .NET CLI? |
Beta Was this translation helpful? Give feedback.
-
@SamLOving |
Beta Was this translation helpful? Give feedback.
-
Thank you @patriksvensson And these are the versions @devlead Runtime Environment: Host (useful for support): .NET Core SDKs installed: .NET Core runtimes installed: QA: Product Information: Runtime Environment: Host (useful for support): .NET Core SDKs installed: .NET Core runtimes installed: UAT: Runtime Environment: Host (useful for support): .NET Core SDKs installed: .NET Core runtimes installed: |
Beta Was this translation helpful? Give feedback.
-
So the issue likely is that you need to align your SDK versions i.e. First step is to add a global.json in the root of your project dotnet new globaljson --sdk-version 2.1.603 this will create a new file in current directory called {
"sdk": {
"version": "2.1.603"
}
} This will instruct the .NET Core CLI which SDK to use for your specific project. Installing SDK's can either be done globally on the machine by fetching installer from Or local to repo using obtain scripts which is what Cake does in it's build.ps1 and build.sh bootstrappers. |
Beta Was this translation helpful? Give feedback.
-
Thanks for reply @devlead Unable to find **\testhost.dll. Please publish your test project and retry. This is my csproj file
Do you know why is that error is produced? Thank you! |
Beta Was this translation helpful? Give feedback.
-
What You Are Seeing?
I have three different environments and in the three of them I am receiving different outputs:
Starting test execution, please wait...
Illegal characters in path.
Parameter name: path
System.IO.FileNotFoundException: Unable to find tests for **/tests.dll. Make sure test project has a nuget reference of package "Microsoft.NET.Test.Sdk" and framework version
settings are appropriate. Rerun with /diag option to diagnose further.
What is Expected?
What version of Cake are you using?
3.0.1.0
Are you running on a 32 or 64 bit system?
64
What environment are you running on? Windows? Linux? Mac?
Windows
Are you running on a CI Server? If so, which one?
Octopus
How Did You Get This To Happen? (Steps to Reproduce)
Run a dll test using DotNetCoreTest.
Output Log
GIST LINK - Please create a gist and link to that gist here
OR
Beta Was this translation helpful? Give feedback.
All reactions