我正在使用Visual Studio 2015创建一个空白的UWP
每次尝试构建
时,我都会收到以下错误Error CS1061 'MainPage' does not contain a definition for 'InitializeComponent' and no extension method 'InitializeComponent' accepting a first argument of type 'MainPage' could be found (are you missing a using directive or an assembly reference?)
Error Value cannot be null.
Parameter name: path1
我尝试卸载Windows软件开发工具包,然后安装它,没有运气
我有一个工作项目,但现在它给出了相同的错误
.csproj中的目标如下
<TargetPlatformVersion>10.0.14393.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.14393.0</TargetPlatformMinVersion>