2017-07-12 90 views
0

我很新的C#編程和我得到上述錯誤,當我嘗試運行我的項目這是完整的輸出我得到:Visual Studio - Windows 8.1項目錯誤 - 錯誤APPX1704:.winmd文件'Windows.winmd'

1>D:\Development\kalsefer\trunk\WindowsClient\Source_win_10\Kalsefer\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets(243,5): warning : All projects referencing Kalsefer.Core.csproj must install nuget package Microsoft.Bcl.Build. For more information, see http://go.microsoft.com/fwlink/?LinkID=317569. 
1> Kalsefer.Windows -> D:\Development\kalsefer\trunk\WindowsClient\Source_win_10\Kalsefer\Kalsefer.Windows\bin\x86\DevRelease\Kalsefer.Windows.exe 
1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(1930,5): warning APPX1707: No implementation file was provided for the .winmd file 'D:\Development\kalsefer\trunk\WindowsClient\Source_win_10\Kalsefer\Kalsefer.Core\bin\x86\DevRelease\Windows.winmd'. To generate registration information in the app manifest, specify the 'Implementation' metadata on the .winmd reference item in the project file. 
1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(1930,5): error APPX1704: The .winmd file 'Windows.winmd' contains type 'Windows.Storage.ISetVersionRequest'. The use of the Windows namespace is reserved. 
1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(1930,5): error APPX1704: The .winmd file 'Windows.winmd' contains type 'Windows.Storage.StreamedFileDataRequest'. The use of the Windows namespace is reserved. 
1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(1930,5): error APPX1704: The .winmd file 'Windows.winmd' contains type 'Windows.Storage.IStorageItemProperties2'. The use of the Windows namespace is reserved. 
1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(1930,5): error APPX1704: The .winmd file 'Windows.winmd' contains type 'Windows.Storage.StorageDeleteOption'. The use of the Windows namespace is reserved. 
1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(1930,5): error APPX1704: The .winmd file 'Windows.winmd' contains type 'Windows.Storage.FileAccessMode'. The use of the Windows namespace is reserved. 

因爲我有更多的4000線,同樣的錯誤,但在不同的文件不寫的所有錯誤。 我在這個錯誤堅持兩天,我會很樂意得到任何幫助。

+0

我有2個想法,你有沒有嘗試刪除bin和obj文件夾?他們可能非常混亂,並且幫助了無數次。其次,它是問你一個nuget包: Microsoft.Bcl.Build 你試過下載它嗎? –

+0

嘿federico,謝謝你的回答,但我已經嘗試了兩種解決方案,我仍然有錯誤 –

回答

0

我解決了我的問題,問題是我添加「使用」的UI元素和Visual Studio自動添加引用「窗口」,使所有4000錯誤,我刪除此引用,一切都解決了。