0

我是 c# 编程的新手,当我尝试运行我的项目时出现上述错误,这是我得到的完整输出:

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 多行相同的错误但在不同的文件中。我坚持这个错误两天,我很乐意得到任何帮助。

4

1 回答 1

0

我解决了我的问题,问题是我为 ui 元素添加了“使用”,Visual Studio 会自动添加对“Window”的引用,导致所有 4000 错误,我删除了这个引用,一切都解决了。

于 2017-07-13T12:25:08.937 回答