0

올바른 포럼 (LightSwitch 또는 TFS)에 질문을 제출하는 것이 확실하지 않습니다. 우리 회사에서는 Visual Studio 2012 LightSwitch에서 개발 한 솔루션을 ApplicationDataService.svc (OData) 및 WCF 서비스를 사용하는 App.Server 계층에 포함시킵니다. TFS에 빌드 정의를 작성하여 앱의 일일 빌드 및 게시를 예약했습니다. 첫 번째 빌드 정의에서 완벽하게 작동하지만 다음과 같은 몇 가지 이유는, 그 로그 결과 다른 사람의 사이에서 표시 오류로 실행 : LightSwitch 메타 데이터가 누락되었습니다. DataService ApplicationData

PrepareForBuild: 
    Creando directorio "bin\Debug\". 
LSSvcGenerators: 
    Quitando el directorio "C:\TFSAgent\_work\1\s\0-Development\OmniMerchant\OmniMerchant.Server\GeneratedArtifacts\GeneratedSvcFiles\". 
    Creando directorio "C:\TFSAgent\_work\1\s\0-Development\OmniMerchant\OmniMerchant.Server\GeneratedArtifacts\GeneratedSvcFiles\". 
    Generación completada 
    Copiando el archivo de "C:\TFSAgent\_work\1\s\0-Development\OmniMerchant\OmniMerchant.Server\GeneratedArtifacts\ApplicationData.svc" en "C:\TFSAgent\_work\1\s\0-Development\OmniMerchant\OmniMerchant.Server\GeneratedArtifacts\GeneratedSvcFiles\ApplicationData.svc". 
    Copiando el archivo de "C:\TFSAgent\_work\1\s\0-Development\OmniMerchant\OmniMerchant.Server\GeneratedArtifacts\AggregationsWCFServiceData.svc" en "C:\TFSAgent\_work\1\s\0-Development\OmniMerchant\OmniMerchant.Server\GeneratedArtifacts\GeneratedSvcFiles\AggregationsWCFServiceData.svc". 
    Copiando el archivo de "C:\TFSAgent\_work\1\s\0-Development\OmniMerchant\OmniMerchant.Server\GeneratedArtifacts\XtraReportsServiceData.svc" en "C:\TFSAgent\_work\1\s\0-Development\OmniMerchant\OmniMerchant.Server\GeneratedArtifacts\GeneratedSvcFiles\XtraReportsServiceData.svc". 
    Copiando el archivo de "C:\TFSAgent\_work\1\s\0-Development\OmniMerchant\OmniMerchant.Server\GeneratedArtifacts\OmniMembershipWCFData.svc" en "C:\TFSAgent\_work\1\s\0-Development\OmniMerchant\OmniMerchant.Server\GeneratedArtifacts\GeneratedSvcFiles\OmniMembershipWCFData.svc". 
    (Out) GeneratedSvcFiles: 'C:\TFSAgent\_work\1\s\0-Development\OmniMerchant\OmniMerchant.Server\GeneratedArtifacts\ApplicationData.svc;C:\TFSAgent\_work\1\s\0-Development\OmniMerchant\OmniMerchant.Server\GeneratedArtifacts\AggregationsWCFServiceData.svc;C:\TFSAgent\_work\1\s\0-Development\OmniMerchant\OmniMerchant.Server\GeneratedArtifacts\XtraReportsServiceData.svc;C:\TFSAgent\_work\1\s\0-Development\OmniMerchant\OmniMerchant.Server\GeneratedArtifacts\OmniMembershipWCFData.svc' 
LSResourceGenerators: 
    Generación completada 
    (Out) GeneratedMetaDataFiles: 'C:\TFSAgent\_work\1\s\0-Development\OmniMerchant\OmniMerchant.Server\GeneratedArtifacts\ApplicationData.csdl;C:\TFSAgent\_work\1\s\0-Development\OmniMerchant\OmniMerchant.Server\GeneratedArtifacts\AggregationsWCFServiceData.csdl;C:\TFSAgent\_work\1\s\0-Development\OmniMerchant\OmniMerchant.Server\GeneratedArtifacts\XtraReportsServiceData.csdl;C:\TFSAgent\_work\1\s\0-Development\OmniMerchant\OmniMerchant.Server\GeneratedArtifacts\OmniMembershipWCFData.csdl;C:\TFSAgent\_work\1\s\0-Development\OmniMerchant\OmniMerchant.Server\GeneratedArtifacts\ApplicationData.msl;C:\TFSAgent\_work\1\s\0-Development\OmniMerchant\OmniMerchant.Server\GeneratedArtifacts\AggregationsWCFServiceData.msl;C:\TFSAgent\_work\1\s\0-Development\OmniMerchant\OmniMerchant.Server\GeneratedArtifacts\XtraReportsServiceData.msl;C:\TFSAgent\_work\1\s\0-Development\OmniMerchant\OmniMerchant.Server\GeneratedArtifacts\OmniMembershipWCFData.msl;C:\TFSAgent\_work\1\s\0-Development\OmniMerchant\OmniMerchant.Server\Gen... 
CoreResGen: 
    "C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\resgen.exe" /useSourcePath /r:C:\TFSAgent\_work\1\s\0-Development\OmniSettlement\AggregationsWCFSer\bin\Debug\AggregationsWCFService.dll /r:"C:\Program Files (x86)\DevExpress\DXperience 12.2\Bin\Framework\DevExpress.Charts.v12.2.Core.dll" /r:"C:\Program Files (x86)\DevExpress\DXperience 12.2\Bin\Framework\DevExpress.Data.v12.2.dll" /r:"C:\Program Files (x86)\DevExpress\DXperience 12.2\Bin\Framework\DevExpress.Office.v12.2.Core.dll" /r:"C:\Program Files (x86)\DevExpress\DXperience 12.2\Bin\Framework\DevExpress.PivotGrid.v12.2.Core.dll" /r:"C:\Program Files (x86)\DevExpress\DXperience 12.2\Bin\Framework\DevExpress.Printing.v12.2.Core.dll" /r:"C:\Program Files (x86)\DevExpress\DXperience 12.2\Bin\Framework\DevExpress.RichEdit.v12.2.Core.dll" /r:"C:\Program Files (x86)\DevExpress\DXperience 12.2\Bin\Framework\DevExpress.Utils.v12.2.dll" /r:"C:\Program Files (x86)\DevExpress\DXperience 12.2\Bin\Framework\DevExpress.Xpf.Printing.v12.2.Cor... 
    Procesando archivo de recursos "rptMerchantTotals.resx" en "obj\Debug\LightSwitchApplication.rptMerchantTotals.resources". 
    Procesando archivo de recursos "rptRejectedTransactions.resx" en "obj\Debug\LightSwitchApplication.rptRejectedTransactions.resources". 
CompileLicxFiles: 
    C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\LC.exe /target:Application.Server.dll /complist:Properties\licenses.licx /outdir:obj\Debug\ /i:C:\TFSAgent\_work\1\s\0-Development\OmniSettlement\AggregationsWCFSer\bin\Debug\AggregationsWCFService.dll /i:"C:\Program Files (x86)\DevExpress\DXperience 12.2\Bin\Framework\DevExpress.Charts.v12.2.Core.dll" /i:"C:\Program Files (x86)\DevExpress\DXperience 12.2\Bin\Framework\DevExpress.Data.v12.2.dll" /i:"C:\Program Files (x86)\DevExpress\DXperience 12.2\Bin\Framework\DevExpress.Office.v12.2.Core.dll" /i:"C:\Program Files (x86)\DevExpress\DXperience 12.2\Bin\Framework\DevExpress.PivotGrid.v12.2.Core.dll" /i:"C:\Program Files (x86)\DevExpress\DXperience 12.2\Bin\Framework\DevExpress.Printing.v12.2.Core.dll" /i:"C:\Program Files (x86)\DevExpress\DXperience 12.2\Bin\Framework\DevExpress.RichEdit.v12.2.Core.dll" /i:"C:\Program Files (x86)\DevExpress\DXperience 12.2\Bin\Framework\DevExpress.Utils.v12.2.dll" /i:"C:\Program Files (x86)\DevExpress... 
GenerateTargetFrameworkMonikerAttribute: 
Se omitirá el destino "GenerateTargetFrameworkMonikerAttribute" porque todos los archivos de salida están actualizados respecto a los archivos de entrada. 

    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v3.0\Microsoft.LightSwitch.Build.Tasks.targets(253,5): Error : Faltan los metadatos de DataService 'ApplicationData'. 
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v3.0\Microsoft.LightSwitch.Build.Tasks.targets(253,5): error : Faltan los metadatos de DataService 'ApplicationData'. [C:\TFSAgent\_work\1\s\0-Development\OmniMerchant\OmniMerchant.Server\OmniMerchant.Server.csproj] 
     Generación completada 
    Compilación del proyecto terminada "C:\TFSAgent\_work\1\s\0-Development\OmniMerchant\OmniMerchant.Server\OmniMerchant.Server.csproj" (destinos predeterminados) -- ERROR. 
    Compilación del proyecto terminada "C:\TFSAgent\_work\1\s\0-Development\OmniMerchant\OmniMerchant.ls3proj" (destinos predeterminados) -- ERROR. 
    Compilación del proyecto terminada "C:\TFSAgent\_work\1\s\0-Development\OmniMerchant\OmniMerchant.sln" (destinos predeterminados) -- ERROR. 
    ERROR al compilar. 

Looking at target file, specifically source line of error into 
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v3.0\Microsoft.LightSwitch.Build.Tasks.targets(253,5): 

    <LSCodeGeneratorsTask Inputs="@(LightSwitchModel)" 
          ServiceModelFiles="@(ServiceMetadataFiles)" 
          IsRebuild="$(LSCodeGenFromRebuild)" 
          IsBuildingInsideVisualStudio="$(BuildingInsideVisualStudio)" 
          LightSwitchProjectType="$(LightSwitchProjectTypeV3)" 
          LightSwitchProjectSubType ="$(LightSwitchProjectSubType)" 
          ProjectPath="$(MSBuildProjectFullPath)" 
          Parameters="Language=$(Language)" 
          MetadataFiles="@(GeneratedMetadataFiles)" 
          ProjectOutputPath="$(OutDir)" 
          ExternalDataSources="@(ServerExternalDataSources)"> 
     <Output ItemName="FileWrites" 
       TaskParameter="ModelChecksums" /> 
     <Output ItemName="Compile" 
       TaskParameter="CodeFiles" /> 
     <Output ItemName="GeneratedCodeFiles" 
       TaskParameter="CodeFiles" /> 
     <Output ItemName="FileWrites" 
       TaskParameter="CodeFiles" /> 
    </LSCodeGeneratorsTask> 

그러나, ApplicationData.csdl이 GeneratedArtifacs에 존재

내가 왜 원인을 이해하지 않는다 오류.

도움주세요, 고마워요!

+0

사용중인 TFS 버전은 무엇입니까? 최근 TFS로 변경 했습니까? 빌드 에이전트 컴퓨터에 로그인하여 MSBuild 명령 줄을 사용하여 프로젝트를 수동으로 빌드하여 어떤 결과를 얻을 수 있는지보십시오. –

+0

또한 LightSwitch 프로젝트를 작성하고 TFS에 대기열 빌드를 작성하여 성공적인 빌드를 얻을 수 있는지 확인하십시오. –

답변

0

혼자서 해결했습니다. LightSwitch VS2012에서 OData 서비스 소비자는 서버 계층 프로젝트에 .edmx 파일 (Entity Framework 데이터 모델)을 생성합니다. 내 프로젝트에 이러한 서비스 (svc)에 대한 서비스 참조의 이름은 ApplicationData입니다. .edmx 파일이 실수로 해당 프로젝트의 다른 사람에 의해 제외 되었기 때문에 Team Build는 앞서 언급 한 오류를 생성하여 ApplicationData 모델을 찾을 수 없었습니다. 나는 이것을 조정했고 .edmx 파일을 TFS에 추가했는데 모든 것이 잘 작동합니다!

감사합니다.