There's a git repository which consists of different projects and solutions. I have a project in ..\Utils\MyProject\ folder
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net45</TargetFramework>
</PropertyGroup>
</Project>
and when I try to add a reference to a project (not created by me) in ..\Utils\OtherSolution\OtherProject folder, I'm getting the following:
Project `C:\Users\username\source\repos\gitRepo\Utils\OtherSolution\OtherProject\OtherProject.csproj` cannot be added due to incompatible targeted frameworks between the two projects. Review the project you are trying to add and verify that is compatible with the following targets:
- net45
This project also targets 4.5:
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{FDFA263A-9C0E-410D-A0D7-D1F230EA95BB}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>OtherProject</RootNamespace>
<AssemblyName>OtherProject</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<TargetFrameworkProfile />
</PropertyGroup>
Why's that and how can I reference it?