Beta 2 - 重命名和清理项目问题 [英] Beta 2 - Rename and Clean Project Issues

查看:71
本文介绍了Beta 2 - 重命名和清理项目问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从一个新的Beta 2项目开始,创建并发布了一个正在运行的应用程序。然后我在ApplicationData数据源下更改了表的名称(右键单击,重命名),而不是反映应用程序中的更改,它保留了屏幕数据
名称,从而打破了应用程序。所以我想让我们清理应用程序并重建,这可能会触发反射。呃 - 糟糕的想法:当你清理应用程序时它删除了一些文件夹,值得注意的是bin / data文件夹并抛出
并且Lightswitch.targets文件中有关缺少部分路径的错误。所以我手动重新创建文件夹,现在应用程序构建但是它加载了LightSwitch.Tagets文件中有关无效架构元素的警告:


警告  2 '命名空间'中的元素'ItemGroup' http://schemas.microsoft.com/developer/msbuild/2003'在命名空间"http://schemas.microsoft.com/developer/msbuild/2003"中包含无效的子元素"_BuildFile"。预期可能元素的列表:
'项目,引用,COMReference,COMFileReference,Xdcmake,Bscmake,ClCompile,ClInclude,Midl,ResourceCompile,PreLinkEvent,CustomBuildStep,Manifest,ProjectConfiguration,NativeReference,ProjectReference,Compile,EmbeddedResource,Content,Page ,资源,
ApplicationDefinition,无,BaseApplicationManifest,文件夹,导入,服务,WebReferences,WebReferenceUrl,FileAssociation,BootstrapperFile,PublishFile,CodeAnalysisDependentAssemblyPaths,CodeAnalysisDictionary,CodeAnalysisImport,Link,ResourceCompile,
PreBuildEvent,PostBuildEvent'in namespace' http://schemas.microsoft.com/developer/msbuild/2003'. C:\Program Files(x86)\ MSBuild\Microsoft \ VisualStudio\LightSwitch\v1.0\Microsoft.LightSwitch .targets  68  10 其他文件


现在我注意到这个引用了Lightswitch \v1.0,虽然也许有一些来自beta 1的残余?但是没有包含这些.dll和目标文件的文件夹是从3/15 - beta 2安装日期。所以我的问题是接下来要尝试清理66
编译警告(除了重新创建我的项目之外)?感谢您的帮助。


-----更新-----

所以我找出问题所在。点击F5来构建和调试项目并没有构建解决方案。一旦我构建了solutoin,一切正常,这些讨厌的警告就消失了!

解决方案

这也解决了我的问题。 但是,只需确保关闭解决方案,再次打开它,然后构建。


KellyLee


" LightSwitch是新的应用程序表达" <!/强>


I started with a new Beta 2 Project, created and published a working applicaiton. Then I changed the name of the table (right click, rename) under the ApplicationData data source and instead of reflecint the change in the application it left the screen data names unchanged therefore breaking the applicatoin. So I figured let's clean the applicaiton and rebuild, perhaps that will trigger the reflections. Uh-Oh - Bad Idea: when you clean the application it removes some folders, notable the bin/data folder and throws and error in Lightswitch.targets file about the partial path missing. So i recreated the folders manually and now the applicaiotn builds but it loaded with warnings from the LightSwitch.Tagets file about invalid schema elements:

Warning 2 The element 'ItemGroup' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element '_BuildFile' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. List of possible elements expected: 'Item, Reference, COMReference, COMFileReference, Xdcmake, Bscmake, ClCompile, ClInclude, Midl, ResourceCompile, PreLinkEvent, CustomBuildStep, Manifest, ProjectConfiguration, NativeReference, ProjectReference, Compile, EmbeddedResource, Content, Page, Resource, ApplicationDefinition, None, BaseApplicationManifest, Folder, Import, Service, WebReferences, WebReferenceUrl, FileAssociation, BootstrapperFile, PublishFile, CodeAnalysisDependentAssemblyPaths, CodeAnalysisDictionary, CodeAnalysisImport, Link, ResourceCompile, PreBuildEvent, PostBuildEvent' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v1.0\Microsoft.LightSwitch.targets 68 10 Miscellaneous Files

Now I noticed that this ref to Lightswitch\v1.0 and though maybee there are some remnant from beta 1? but no the folders containing these .dll(s) and targets files are from 3/15 - beta 2 install date. So my question is what to try next to clean up the 66 compile warnings (other than recreate my project, again) ? Thanks for any help.

----- UPDATE -----
So I figure out the problem. Hitting F5 to build and debug the project did not build the solution. Once I build the solutoin everything worked out ok and these pesky warnings went away!

解决方案

This resolved my issue too.  However, just be sure to close the solution, open it again, then build.

KellyLee

"LightSwitch is the new Application Express!"


这篇关于Beta 2 - 重命名和清理项目问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆