如何在使用扩展程序时自动执行lightswitch应用程序构建? [英] How to automate lightswitch application build while using extensions?

查看:50
本文介绍了如何在使用扩展程序时自动执行lightswitch应用程序构建?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在开发Lightswitch应用程序(使用vs 2012 RTM和TFS 2012 RTM作为SCM).外部扩展已安装在开发环境中(组件一).我们正在配置构建服务器以实现自动构建,测试和打包.

We are developing a Lightswitch app (using vs 2012 RTM and TFS 2012 RTM as SCM). External extensions have been installed on dev environment (component one). We are configuring a build server to adress automatic building, test, and packaging.

由于我们不想在构建服务器上安装特定于项目的库,因此我正在寻找一种方法,将把lightswitch项目参考扩展名放入源代码管理中(这是我们在Web应用程序上使用的常见内容对于这种 东西.)

As we do not want to install project specific librairies on build server, I'm looking for a way to have the lightswitch project reference extensions that will be put in source control management (this was a common thing we used on web app for this kind of things).

我一直在寻找它,但没有找到对谷歌搜索有任何帮助.

I've looked for it, but did not found any help googling.

有人可以给我一些关于这个主题的线索吗?

Could anyone give me some clues on the subject?

出于测试目的,我在构建服务器上安装了扩展库.它可以成功构建xap文件,因此效果更好,但是BuildSchema任务出现以下错误.它似乎是缺少的程序集或类似的东西.我怎么找到 缺少类型的名称?

For testing purpose, I installed the extension library on build server. It succeds in building the xap file, so it's better, but I have the following error on BuildSchema task. It seems to be a missing assembly or something similar. How can I find the name of the missing type?

将架构开始构建到目录:Mypath \ Bin \ Data

Begin schema build to directory: Mypath\Bin\Data

C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ LightSwitch \ v2.0 \ Microsoft.LightSwitch.targets(146,9):错误MSB4018:"BuildSchema"任务意外失败. [D:\ Builds \ 1 \ TfsTests \ .... Application.lsproj]

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v2.0\Microsoft.LightSwitch.targets(146,9): error MSB4018: The "BuildSchema" task failed unexpectedly. [D:\Builds\1\TfsTests\....Application.lsproj]

C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ LightSwitch \ v2.0 \ Microsoft.LightSwitch.targets(146,9):错误MSB4018:System.Reflection.ReflectionTypeLoadException:无法加载一个或多个所请求的类型.检索LoaderExceptions属性 了解更多信息. [D:\ Builds \ 1 \ TfsTests \ .... Application.lsproj]

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v2.0\Microsoft.LightSwitch.targets(146,9): error MSB4018: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. [D:\Builds\1\TfsTests\....Application.lsproj]

C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ LightSwitch \ v2.0 \ Microsoft.LightSwitch.targets(146,9):错误MSB4018:位于System.Reflection.RuntimeModule.GetTypes(RuntimeModule模块) [D:\ Builds \ 1 \ TfsTests \ xxx.Application.lsproj]

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v2.0\Microsoft.LightSwitch.targets(146,9): error MSB4018: at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) [D:\Builds\1\TfsTests\xxx.Application.lsproj]

C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ LightSwitch \ v2.0 \ Microsoft.LightSwitch.targets(146,9):错误MSB4018:位于System.Reflection.RuntimeModule.GetTypes()[D :\ Builds \ 1 \ TfsTests \ xxx.Application.lsproj]

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v2.0\Microsoft.LightSwitch.targets(146,9): error MSB4018: at System.Reflection.RuntimeModule.GetTypes() [D:\Builds\1\TfsTests\xxx.Application.lsproj]

C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ LightSwitch \ v2.0 \ Microsoft.LightSwitch.targets(146,9):错误MSB4018:位于System.Reflection.Assembly.GetTypes()[D :\ Builds \ 1 \ TfsTests \ .... Application.lsproj]

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v2.0\Microsoft.LightSwitch.targets(146,9): error MSB4018: at System.Reflection.Assembly.GetTypes() [D:\Builds\1\TfsTests\....Application.lsproj]

C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ LightSwitch \ v2.0 \ Microsoft.LightSwitch.targets(146,9):错误MSB4018:位于System.ComponentModel.Composition.Hosting.AssemblyCatalog.get_InnerCatalog ()[D:\ Builds \ 1 \ TfsTests \ .... Application.lsproj]

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v2.0\Microsoft.LightSwitch.targets(146,9): error MSB4018: at System.ComponentModel.Composition.Hosting.AssemblyCatalog.get_InnerCatalog() [D:\Builds\1\TfsTests\....Application.lsproj]

C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ LightSwitch \ v2.0 \ Microsoft.LightSwitch.targets(146,9):错误MSB4018:位于System.ComponentModel.Composition.Hosting.AssemblyCatalog.GetEnumerator ()[D:\ Builds \ 1 \ TfsTests \ .... Application.lsproj]

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v2.0\Microsoft.LightSwitch.targets(146,9): error MSB4018: at System.ComponentModel.Composition.Hosting.AssemblyCatalog.GetEnumerator() [D:\Builds\1\TfsTests\....Application.lsproj]

C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ LightSwitch \ v2.0 \ Microsoft.LightSwitch.targets(146,9):错误MSB4018:位于System.Linq.Buffer`1..ctor( IEnumerable`1源代码)[D:\ Builds \ 1 \ TfsTests \ .... Application.lsproj]

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v2.0\Microsoft.LightSwitch.targets(146,9): error MSB4018: at System.Linq.Buffer`1..ctor(IEnumerable`1 source) [D:\Builds\1\TfsTests\....Application.lsproj]

C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ LightSwitch \ v2.0 \ Microsoft.LightSwitch.targets(146,9):错误MSB4018:位于System.Linq.Enumerable.ToArray [TSource]( IEnumerable`1源代码)[D:\ Builds \ 1 \ TfsTests \ .... Application.lsproj]

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v2.0\Microsoft.LightSwitch.targets(146,9): error MSB4018: at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source) [D:\Builds\1\TfsTests\....Application.lsproj]

C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ LightSwitch \ v2.0 \ Microsoft.LightSwitch.targets(146,9):错误MSB4018:位于System.ComponentModel.Composition.Hosting.ComposablePartCatalogCollection.< ;> c__DisplayClass1.< Add> b__0()[D:\ Builds \ 1 \ TfsTests \ .... Application.lsproj]

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v2.0\Microsoft.LightSwitch.targets(146,9): error MSB4018: at System.ComponentModel.Composition.Hosting.ComposablePartCatalogCollection.<>c__DisplayClass1.<Add>b__0() [D:\Builds\1\TfsTests\....Application.lsproj]

C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ LightSwitch \ v2.0 \ Microsoft.LightSwitch.targets(146,9):错误MSB4018:位于System.Lazy`1.CreateValue()[D :\ Builds \ 1 \ TfsTests \ .... Application.lsproj]

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v2.0\Microsoft.LightSwitch.targets(146,9): error MSB4018: at System.Lazy`1.CreateValue() [D:\Builds\1\TfsTests\....Application.lsproj]

C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ LightSwitch \ v2.0 \ Microsoft.LightSwitch.targets(146,9):错误MSB4018:位于System.Lazy`1.LazyInitValue()[D :\ Builds \ 1 \ TfsTests \ .... Application.lsproj]

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v2.0\Microsoft.LightSwitch.targets(146,9): error MSB4018: at System.Lazy`1.LazyInitValue() [D:\Builds\1\TfsTests\....Application.lsproj]

C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ LightSwitch \ v2.0 \ Microsoft.LightSwitch.targets(146,9):错误MSB4018:位于System.Lazy`1.get_Value()[D :\ Builds \ 1 \ TfsTests \ .... Application.lsproj]

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v2.0\Microsoft.LightSwitch.targets(146,9): error MSB4018: at System.Lazy`1.get_Value() [D:\Builds\1\TfsTests\....Application.lsproj]

C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ LightSwitch \ v2.0 \ Microsoft.LightSwitch.targets(146,9):错误MSB4018:位于System.ComponentModel.Composition.Hosting.ComposablePartCatalogCollection.RaiseChangingEvent ((添加了1个懒惰的定义,删除了1个懒惰的定义, AtomicComposition atomicComposition)[D:\ Builds \ 1 \ TfsTests \ .... Application.lsproj]

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v2.0\Microsoft.LightSwitch.targets(146,9): error MSB4018: at System.ComponentModel.Composition.Hosting.ComposablePartCatalogCollection.RaiseChangingEvent(Lazy`1 addedDefinitions, Lazy`1 removedDefinitions, AtomicComposition atomicComposition) [D:\Builds\1\TfsTests\....Application.lsproj]

C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ LightSwitch \ v2.0 \ Microsoft.LightSwitch.targets(146,9):错误MSB4018:位于System.ComponentModel.Composition.Hosting.ComposablePartCatalogCollection.Add (ComposablePartCatalog项)[D:\ Builds \ 1 \ TfsTests \ .... Application.lsproj]

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v2.0\Microsoft.LightSwitch.targets(146,9): error MSB4018: at System.ComponentModel.Composition.Hosting.ComposablePartCatalogCollection.Add(ComposablePartCatalog item) [D:\Builds\1\TfsTests\....Application.lsproj]

C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ LightSwitch \ v2.0 \ Microsoft.LightSwitch.targets(146,9):错误MSB4018:在Microsoft.LightSwitch.BuildTasks.Common.CommandLineBuildContainerFactory.AddAssemblyToGlobalCatalog (字符串assemblyPath,AggregateCatalog 聚合目录)[D:\ Builds \ 1 \ TfsTests \ .... Application.lsproj]

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v2.0\Microsoft.LightSwitch.targets(146,9): error MSB4018: at Microsoft.LightSwitch.BuildTasks.Common.CommandLineBuildContainerFactory.AddAssemblyToGlobalCatalog(String assemblyPath, AggregateCatalog aggregateCatalog) [D:\Builds\1\TfsTests\....Application.lsproj]

C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ LightSwitch \ v2.0 \ Microsoft.LightSwitch.targets(146,9):错误MSB4018:在Microsoft.LightSwitch.BuildTasks.Common.CommandLineBuildContainerFactory.LoadExtensions (IList`1扩展名,字符串rootProjectFile, AggregateCatalog AggregationCatalog)[D:\ Builds \ 1 \ TfsTests \ .... Application.lsproj]

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v2.0\Microsoft.LightSwitch.targets(146,9): error MSB4018: at Microsoft.LightSwitch.BuildTasks.Common.CommandLineBuildContainerFactory.LoadExtensions(IList`1 extensions, String rootProjectFile, AggregateCatalog aggregateCatalog) [D:\Builds\1\TfsTests\....Application.lsproj]

C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ LightSwitch \ v2.0 \ Microsoft.LightSwitch.targets(146,9):错误MSB4018:在Microsoft.LightSwitch.BuildTasks.Common.CommandLineBuildContainerFactory.LoadExtensionsIntoGlobalCatalog (字符串projectPath,AggregateCatalog 聚合目录)[D:\ Builds \ 1 \ TfsTests \ .... Application.lsproj]

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v2.0\Microsoft.LightSwitch.targets(146,9): error MSB4018: at Microsoft.LightSwitch.BuildTasks.Common.CommandLineBuildContainerFactory.LoadExtensionsIntoGlobalCatalog(String projectPath, AggregateCatalog aggregateCatalog) [D:\Builds\1\TfsTests\....Application.lsproj]

C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ LightSwitch \ v2.0 \ Microsoft.LightSwitch.targets(146,9):错误MSB4018:在Microsoft.LightSwitch.BuildTasks.Common.CommandLineBuildContainerFactory.Create (IEnumerable`1 inputStreams,IEnumerable`1 commonStreams, IEnumerable`1 serviceStreams,字符串projectPath,IEnumerable`1 externalDataSources)[D:\ Builds \ 1 \ TfsTests \ .... Application.lsproj]

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v2.0\Microsoft.LightSwitch.targets(146,9): error MSB4018: at Microsoft.LightSwitch.BuildTasks.Common.CommandLineBuildContainerFactory.Create(IEnumerable`1 inputStreams, IEnumerable`1 commonStreams, IEnumerable`1 serviceStreams, String projectPath, IEnumerable`1 externalDataSources) [D:\Builds\1\TfsTests\....Application.lsproj]

C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ LightSwitch \ v2.0 \ Microsoft.LightSwitch.targets(146,9):错误MSB4018:在Microsoft.LightSwitch.BuildTasks.Common.BuildTaskBase.EnsureCommandLineBuildContainer ()[D:\ Builds \ 1 \ TfsTests \ .... Application.lsproj]

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v2.0\Microsoft.LightSwitch.targets(146,9): error MSB4018: at Microsoft.LightSwitch.BuildTasks.Common.BuildTaskBase.EnsureCommandLineBuildContainer() [D:\Builds\1\TfsTests\....Application.lsproj]

C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ LightSwitch \ v2.0 \ Microsoft.LightSwitch.targets(146,9):错误MSB4018:在Microsoft.LightSwitch.BuildTasks.SchemaManagement.BuildSchema.Execute ()[D:\ Builds \ 1 \ TfsTests \ .... Application.lsproj]

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v2.0\Microsoft.LightSwitch.targets(146,9): error MSB4018: at Microsoft.LightSwitch.BuildTasks.SchemaManagement.BuildSchema.Execute() [D:\Builds\1\TfsTests\....Application.lsproj]

C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ LightSwitch \ v2.0 \ Microsoft.LightSwitch.targets(146,9):错误MSB4018:在Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build .BackEnd.ITaskExecutionHost.Execute()[D:\ Builds \ 1 \ TfsTests \ .... Application.lsproj]

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v2.0\Microsoft.LightSwitch.targets(146,9): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [D:\Builds\1\TfsTests\....Application.lsproj]

C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ LightSwitch \ v2.0 \ Microsoft.LightSwitch.targets(146,9):错误MSB4018:在Microsoft.Build.BackEnd.TaskBuilder.< ExecuteInstantiatedTask> ; d__20.MoveNext()[D:\ Builds \ 1 \ TfsTests \ .... Application.lsproj]

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v2.0\Microsoft.LightSwitch.targets(146,9): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext() [D:\Builds\1\TfsTests\....Application.lsproj]

推荐答案

我遇到了同样的问题.  您有没有得到答案?谢谢.
I'm having the same problem.  Did you ever get an answer to this? Thanks.


这篇关于如何在使用扩展程序时自动执行lightswitch应用程序构建?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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