2017-01-20 3 views
1

MSBuildを使用してSSASプロジェクトを構築することはできません。しかし、SSASプロジェクトは、Visual StudioまたはSSAS Helperdescription)を使用して構築することができます。 Visual StudioのGUI(devenv.exe)を使用してVisual Studio CLIからSSAS 2016を構築する

、私のSSAS 2016表形式プロジェクトのビルドが実際に罰金建てるん:

Build results of a SSAS Tabular 2016 project in Visual Studio

Visual Studioは、非対話的な使用のためのCLIを提供します:devenv.com。私のプロジェクトは、GUIを用いて微細構築しますが、CLIを使用して構築しようとしたときしかし、それはエラーがスローされます。

devenv.com build throws error "Object reference not set to an instance of an object"

どのように私は、CLIを使用して、私のSSAS 2016表形式のプロジェクトをビルドするのですか? devenv.comは、devenv.exe以外のライブラリを別のライブラリで使用していますか?

背景/より多くの情報/しようとします:

SSASヘルパーサンプルCLIは同じエラーを生成します。

The internet doesn't seem to know about this problem ..

マイsmprojファイルには、次のようになります。

<?xml version="1.0" encoding="utf-8"?> 
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 
    <PropertyGroup> 
    <Configuration Condition=" '$(Configuration)' == '' ">Development</Configuration> 
    <SchemaVersion>2.0</SchemaVersion> 
    <ProjectGuid>{8CE414BB-95B2-4C99-9E03-51BA72086E22}</ProjectGuid> 
    <OutputType>Exe</OutputType> 
    <RootNamespace>MyRootNamespace</RootNamespace> 
    <AssemblyName>MyAssemblyName</AssemblyName> 
    <EnableUnmanagedDebugging>false</EnableUnmanagedDebugging> 
    <OutputPath>bin\</OutputPath> 
    <Name>ProjectName_Tabular</Name> 
    <DeploymentServerName>devserver</DeploymentServerName> 
    <DeploymentServerEdition>Developer</DeploymentServerEdition> 
    <DeploymentServerVersion>Version_11_0</DeploymentServerVersion> 
    <DeploymentServerDatabase>ProjectName_Tabular</DeploymentServerDatabase> 
    <DeploymentServerCubeName>Model</DeploymentServerCubeName> 
    <DeploymentOptionProcessing>Default</DeploymentOptionProcessing> 
    <DeploymentOptionTransactionalDeployment>False</DeploymentOptionTransactionalDeployment> 
    <DeploymentOptionDirectQueryMode>InMemory</DeploymentOptionDirectQueryMode> 
    <DeploymentOptionQueryImpersonation>Default</DeploymentOptionQueryImpersonation> 
    <SccProjectName>SAK</SccProjectName> 
    <SccProvider>SAK</SccProvider> 
    <SccAuxPath>SAK</SccAuxPath> 
    <SccLocalPath>SAK</SccLocalPath> 
    </PropertyGroup> 
    <PropertyGroup Condition=" '$(Configuration)' == 'Development' "> 
    <OutputPath>bin\Development\</OutputPath> 
    </PropertyGroup> 
    <PropertyGroup Condition=" '$(Configuration)' == 'Release' "> 
    <OutputPath>bin\Release\</OutputPath> 
    <DeploymentServerEdition>Enterprise</DeploymentServerEdition> 
    <DeploymentOptionProcessing>Full</DeploymentOptionProcessing> 
    </PropertyGroup> 
    <ItemGroup> 
    <Compile Include="ProjectName_Tabular.bim"> 
     <SubType>Code</SubType> 
     <CopyToOutputDirectory>Always</CopyToOutputDirectory> 
    </Compile> 
    </ItemGroup> 
    <Import Project="$(MSBuildExtensionsPath)\Business Intelligence Semantic Model\1.0\Microsoft.AnalysisServices.VSHostBuilder.targets" /> 
</Project> 

答えて

1

表形式を使用すると、MSBuildのを実行することができます。例えば、

MSBuildのTabularProject8.smproj /冗長性:M /ターゲット:これは偉大な回避策です

+0

をリリース=構成:/プロパティを再構築します! 'devenv.com'は' devenv.exe' IMHOのように動作するはずですが、少なくともこれは私のソリューション(SSISプロジェクト用のIntegrationServices.Build.dll)(https://speaksql.wordpress.com/2013/06/07/a-journey-to-db-deployment-automaton-ssis-build-using-msbuild /)) – vstrien

+0

うまく解決してうれしいです:) – bdog

+1

私はdevenv.exeでの経験はありませんが、このページの先頭にある注意事項https://msdn.microsoft.com/en-us/library/xee0c8y7(v=vs.140).aspxでは、ビルド関連の作業については、MSBuildを使用することをお勧めします。デヴェンヴェ – bdog

関連する問題