StilSoft / CasparCG.AmcpClient

.NET library for communication with CasparCG Server: https://github.com/CasparCG/Server.
11 stars 3 forks source link

building DLL #3

Open JacobBothell opened 2 years ago

JacobBothell commented 2 years ago

I am trying to build this inside of VS 2022 community version. I am trying to build the class into a DLL but I am getting an error stating:

Severity Code Description Project File Line Suppression State Error MSB3644 The reference assemblies for .NETFramework,Version=v4.5 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 CasparCg.AmcpClient C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets 1217

I have the 4.5 SDK installed in the correct place for VS... I think. Does anyone know what my issue might be?

JacobBothell commented 2 years ago

I got it. Since I had the SDK already installed I navigated to the directory with the .sln and did a dotnet build ./CasparCg.AmcpClient.sln and all was good to go. Also had to add the .dll to my new project and using StilSoft.Communicaiton.Tcp; and all was gtg