在Visual Studio 2013中运行示例Microsoft UCMA 4.0示例时出错

时间:2016-05-17 12:48:45

标签: visual-studio ucma

我只是想从Visual Studio 2013测试预构建的Microsoft UCMA 4.0 Quickstart示例应用程序。

如果按开始键,我会收到警告:

Warning 1   The primary reference "Microsoft.Rtc.Collaboration, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the assembly "System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" which was built against the ".NETFramework,Version=v4.5" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0". RecorderSample

和一堆错误,例如:

Error   3   The type or namespace name 'AudioVideo' does not exist in the namespace 'Microsoft.Rtc.Collaboration' (are you missing an assembly reference?)  C:\Program Files\Microsoft UCMA 4.0\SDK\Core\Sample Applications\QuickStarts\AudioVideoCall\Recorder\RecorderSample.cs  10  35  RecorderSample

我的电脑上有.net framework 4.5.1

1 个答案:

答案 0 :(得分:0)

我通过转到项目,项目属性,应用程序,目标框架并更改为4.5.1

来解决