Ho un problema quando provo a compilare un'app di Windows Store in C#/XAML. Ogni volta che provo a compilare Ricevo questo errore:Microsoft.Windows.UI.Xaml.Common.Targets non trovato
Error 1 The system cannot find the file specified. (Exception from HRESULT: 0x80070002) App1
e
C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v11.0\Microsoft.Windows.UI.Xaml.Common.targets(190,9): Xaml Internal Error error WMC9999: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
ho il file, in modo che non è il problema. Questo problema appare anche quando creo una nuova app di Windows 8 store da un modello, quindi sembra un problema con il mio sistema. Ho provato a riavviare il computer e riparare l'installazione VS2012 (due volte) senza risultati.
Qualche idea? Qualcuno potrebbe aiutarmi a risolvere questo problema? Ho di Visual Studio Professionale 2012. Grazie in anticipo
EDIT: Questo è il codice in "C: \ Program Files (x86) \ MSBuild \ Microsoft \ WindowsXaml \ v11.0 \ Microsoft.Windows.UI.Xaml .Common.targets (190,9)"
<CompileXaml
LanguageSourceExtension="$(DefaultLanguageSourceExtension)"
Language="$(Language)"
RootNamespace="$(RootNamespace)"
XamlPages="@(Page)"
XamlApplications="@(ApplicationDefinition)"
PriIndexName="$(PriIndexName)"
ProjectName="$(MsBuildProjectName)"
IsPass1="True"
CodeGenerationControlFlags="$(XamlCodeGenerationControlFlags)"
ProjectPath="$(MSBuildProjectFullPath)"
OutputPath="$(XamlGeneratedOutputPath)"
OutputType="$(OutputType)"
TargetPlatformWinMDLocation="$(TargetPlatformWinMDLocation)"
ReferenceAssemblyPaths="@(ReferenceAssemblyPaths)"
ReferenceAssemblies ="@(ReferencePath)"
ShareAppDomains="$(XamlShareAppDomains)"
ForceSharedAppDomainShutdown="False"
CompileMode="RealBuildPass1"
XAMLFingerprint="$(XAMLFingerprint)"
FingerprintIgnorePaths="$(XAMLFingerprintIgnorePaths)"
VCInstallDir="$(VCInstallDir_110)"
>
<Output Condition=" '$(ManagedAssembly)'!='false' " ItemName="Compile" TaskParameter="GeneratedCodeFiles" />
<!-- Add to the list list of files written. It is used in Microsoft.Common.Targets to clean up
for a next clean build
-->
<Output ItemName="FileWrites" TaskParameter="GeneratedCodeFiles" />
<Output ItemName="FileWrites" TaskParameter="GeneratedXamlFiles" />
<Output ItemName="_GeneratedCodeFiles" TaskParameter="GeneratedCodeFiles" />
</CompileXaml>
Forse potresti provare a eseguire una build con Process Monitor attivato per vedere se è possibile trovare il file mancante che sta cercando. –
Nessun suggerimento da process explorer :( – cjgaliana
L'errore non è abbastanza specifico L'attività CompileXaml esegue una quantità non banale di lavoro che coinvolge molti file. Se ProcMon di SysInternals non è di aiuto, è necessario investire del tempo per ottenere il tuo macchina stabile di nuovo, una buona idea comunque poiché questi problemi sono raramente isolati –