2012-08-30 10 views
13

Il progetto ha funzionato bene in Visual Studio 2010 e abbiamo eseguito l'aggiornamento a Visual Studio 2012; tuttavia, ora non viene compilato.Problema di compilazione in Visual Studio 12 Professional con un progetto C#

Abbiamo il seguente errore:

Error 2 Task could not find "AL.exe" using the SdkToolsPath "" or the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.0A\WinSDK-NetFx40Tools-x86". Make sure the SdkToolsPath is set and the tool exists in the correct processor specific location under the SdkToolsPath and that the Microsoft Windows SDK is installed PROJECT_NAME

Qualcuno come risolvere questo problema?

Sono su Windows 2008 R2 SP1 con .NET 4.5 installato. Non ho installato direttamente .NET 4, ho usato il programma di installazione di .NET 4.5.

+1

Avete seguito la passaggi descritti nel messaggio di errore? –

+0

@DanielHilgarth Non ho .net. Ho installato direttamente .net 4.5 quando installo la mia stazione 2-3 giorni fa. – user1460904

+1

Ovviamente il tuo progetto utilizza Windows SDK per .NET 4. L'hai installato? –

risposta

4

Soluzione sottolineato da Mark Rainey ha lavorato per noi: http://www.markrainey.me/2013/02/setting-up-build-machine.html

Changing sdk version

Go to "Microsoft Windows SDK v7.1" from the Start menu 
Select "Windows SDK 7.1 Command Prompt" and enter 
> cd Setup 
> WindowsSdkVer -version:v7.1 
+0

Grazie per questa risposta! Questo ha funzionato per me sul mio Windows 7 build server dopo che ha iniziato a fallire mentre cercavo ngen.exe mentre creavo uno dei miei progetti. – rsbarro

1

Il mio problema era quando facendo clic su Properties sulla soluzione per la configurazione Active(Debug), la configurazione per i miei progetti era impostata su Release. Modificato su Debug, ricostruito e l'errore di compilazione è scomparso.

Problemi correlati