My environment is TFS 2013 and VS 2013 using NUnit 3.2.1. I am getting the error:
"Exception NUnit.Core.UnsupportedFrameworkException, Exception thrown executing tests".
I think it is because I have NUnitTestAdapter 2.0.0 and need 3.2.1.
Where do I find this? It is not in https://dist.nuget.org/index.html
Thanks
Seems you want to install NUnit 3.2.1. To install NUnit, run the following command in the Package Manager Console:
Install-Package NUnit
Check: https://www.nuget.org/packages/NUnit/3.2.1
Related
[Running] dotnet run --project "c:\Users\Bloxxel64\CodeProjects\AssetStudio\AssetStudioGUI\AssetStudioGUI.csproj"
C:\Program Files\dotnet\sdk\5.0.403\Microsoft.Common.CurrentVersion.targets(1217,5): error MSB3644: The reference assemblies for .NETFramework,Version=v4.0 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
The build failed. Fix the build errors and run again.
[Done] exited with code=1 in 3.872 seconds
I've Already installed the latest .NET Framework and SDK but i can't get it to run.
I cannot figure out how to fix this. any advice?
There are helpful links in the microsoft forum Link and StackOverflow Link that have the question on your type Target frameworks are differents.
All my projects are not failing to build on my Azure DevOps MacOS build host. It's a self-hosted build host. Suddenly, my projects are throwing this error when trying to build:
error MSB4018: The "GenerateDepsFile" task failed unexpectedly.
error MSB4018: System.MissingMethodException: Method not found: System.Collections.Generic.IList`1<NuGet.Packaging.Core.PackageDependency> NuGet.ProjectModel.LockFileTargetLibrary.get_Dependencies()
I found this GitHub issue which seemed similar, but the posted solution didn't help me:
https://github.com/mono/mono/issues/13537
As mentioned in xamarin/xamarin-android#3155 this is caused by a version mismatch in nuget between msbuild and dotnet core. The solution is to update your dotnet core install to the latest stable version
I've installed the most recent .NET Core, and updated Visual Studio for Mac, but alas, the problem remains.
Another information:
When I build the same Xamarin.iOS project from my Windows machine coupled with the same MacOS build host, the app builds just fine. But I am guessing the process is probably different.
Updating both Visual Studio for Mac and .NET Core SDK again today seems to have fixed the problem.
We started to use VS2019 and all the new things that comes with. We noticed that the build manager doesn't work anymore:
The SonarQube MSBuild integration failed: SonarQube was unable to collect the required information about your projects.
Possible causes:
1. The project has not been built - the project must be built in between the begin and end steps
2. An unsupported version of MSBuild has been used to build the project. Currently MSBuild 14.0 and 15.0 are supported
3. The begin, build and end steps have not all been launched from the same folder
4. None of the analyzed projects have a valid ProjectGuid and you have not used a solution (.sln)
I checked, but I thing I've the latest version of SonarScanner installed. I'm kind of stuck, how to execute all our tests if we use some things of the MSBUILD V16(2019) compiler, but sonar cube doesn't seems to be compatible?
Is there a workaround?
Thanks
I am using Visual Studio Test task version 2 in my build definition in TFS 2017. Once my build is successful and it generates test dll(s),VSTest task is not able to run the test dll(s) that are built on platform x64.I am getting the following message:
Test run will use DLL(s) built for framework Framework45 and platform x86.Following DLL(s) will not be part of run: 'TestDllName.dll' is built for Framework FrameworkCore10 and Platform x64.
How to fix this?
Add the additional VSTest command line argument /Framework:FrameworkCore10.
I have a Build server which has TFS 2010 Build Service installed. I have 2 Build Agents and 1 Controllers configured. One of our projects have been converted to Visual Studio 2012.
I found out that .NET framework 4.5 comes with new version of MSBuild which is version 4.5.
I installed .NET framework 4.5 on the Build Server because prior to installing it every time the project was built I kept getting the following error:
"Solution is of version '12.00' which is not currently supported".
After installing .NET 4.5, I still run into the same issue.
How could I go about resolving this?
Do I have to configure the Build Agent to use the new MSBuild 4.5 in order to build this particular project or do I set something in the projects solution file itself? If so how?
I would really appreciate if somebody could assist me with this please?
Try install vs2012 on the build server, while i don't believe it's strictly needed it's the easiest way to get all the requirements installed.
We have installed VS2012 on the build agent. Interestingly when I RDC to the build agent and then run msbuild from the command line everything works fine. So the issue looks like it happens before we even get to MSBuild.