page 1 of 1
Comments: 4 | Views: 981

Hi,

I am building a test project with Expression Blend. The project builds, but I get a weird message about not being able to locate the .NET Framework SDK (see bolded blue). Any thoughts as to why? How can I get rid of it? Thanks.

This is the contents of the output window:

Build project: Test, Targets: Build
__________________________________________________
Project "C:\Users\me\Documents\Expression\Expression Blend Projects\Test\Test.csproj" (Build target(s)):

Could not locate the .NET Framework SDK.  The task is looking for the path to the .NET Framework SDK at the location specified in the SDKInstallRootv2.0 value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework.  You may be able to solve the problem by doing one of the following:  1.) Install the .NET Framework SDK.  2.) Manually set the above registry key to the correct location.

C:\Windows\Microsoft.NET\Framework\v2.0.50727\Csc.exe /noconfig /nowarn:1701,1702 /define:DEBUG;TRACE /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\PresentationCore.dll" /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\PresentationFramework.dll" /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\WindowsBase.dll" /debug+ /debug:pdbonly /out:obj\Debug\Test.exe /resource:obj\Debug\Test.g.resources /target:winexe /win32icon:Application.ico App.xaml.cs AssemblyInfo.cs Window1.xaml.cs "C:\Users\me\Documents\Expression\Expression Blend Projects\Test\obj\Debug\Window1.g.cs" "C:\Users\me\Documents\Expression\Expression Blend Projects\Test\obj\Debug\App.g.cs"
Test -> C:\Users\me\Documents\Expression\Expression Blend Projects\Test\bin\Debug\Test.exe

The build has successfully completed.

Do you have Visual Studio or the .Net SDK installed?
Anon-E-Mouse wrote:

CannotResolveSymbol wrote:Do you have Visual Studio or the .Net SDK installed?


I have Microsoft Visual Studio 2008 Professional installed. Doesn't that install the SDK automatically? I don't see in my control panel a specific entry for the SDK, but I thought that was lumped into the VS install.


Yes, it does.

I think the problem is that Al.exe is not being found.  In order to use AL.exe, the ALToolPath parameter must be set and passed to msbuild. If you used the default install location for VS2008, you can use the following command.  If not, search for al.exe and use that location instead:

msbuild /p:ALToolPath="C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin

Karin Meier

Windows SDK Team

page 1 of 1
Comments: 4 | Views: 981