I'm tring to set my bitbucket runner. I did my all settings on bitbucket and looks correct. The problem is my project. I can run and build my stuff without problem. But when I run my build script in the yaml file this error shows up.
Error message is; /usr/share/dotnet/sdk/3.1.426/Microsoft.Common.CurrentVersion.targets(1177,5): error MSB3971: The reference assemblies for ".NETFramework,Version=v6.0" were not found. You might be using an older .NET SDK to target .NET 5.0 or higher. Update Visual Studio and/or your .NET SDK. I tried to all solve answers I saw. But I couldnt kill it.[/opt/atlassian/pipelines/agent/build/NLayer.Core/NLayer.Core.csproj]
But all my SDK's are installed. 3.1.426 also .net 7 latest version (.net 6 installed with all needed framework too). I tried to unistall and install process. But it doesnt work. Added the .net locations (sdk,dotnet shared,as.netcore,net bal bla) environment variables. Also it didnt work. I tried to add global.json file too. After add the file to project folder error has changed.
Error message after added global.json file
The project I working on it is not my main project. This is smaller than my main project. I cant even get so far to take my main error. If someone help me for this problem I would like to talk about my main error on the big project.
NOTE: using visual studio 2022 and installed latest .net version of 7 (runtime,sdk,hosting bundle vs.), Windows 11, main project is created with ABP Framework( https://abp.io/ ), not using docker
I tried to almost every possible solution I saw. But I couldnt solve.
Good coding....