Visual studio 从Visual Studio CLI构建SSAS 2016
无法使用Visual studio 从Visual Studio CLI构建SSAS 2016,visual-studio,visual-studio-2015,ssas,sql-server-data-tools,ssas-tabular,Visual Studio,Visual Studio 2015,Ssas,Sql Server Data Tools,Ssas Tabular,无法使用MSBuild生成SSAS项目。然而,据报道,SSAS项目可以使用Visual Studio或()构建 使用Visual Studio GUI(devenv.exe),我的SSAS 2016表格项目的构建确实构建得很好: Visual Studio还为非交互式使用提供了CLI:devenv.com。但是,尽管我的项目使用GUI构建良好,但在尝试使用CLI构建时会引发错误: 如何使用CLI构建SSAS 2016表格项目?devenv.com是否使用除devenv.exe之外的其他库进行
MSBuild
生成SSAS项目。然而,据报道,SSAS项目可以使用Visual Studio或()构建
使用Visual Studio GUI(devenv.exe
),我的SSAS 2016表格项目的构建确实构建得很好:
Visual Studio还为非交互式使用提供了CLI:devenv.com
。但是,尽管我的项目使用GUI构建良好,但在尝试使用CLI构建时会引发错误:
如何使用CLI构建SSAS 2016表格项目?devenv.com
是否使用除devenv.exe
之外的其他库进行构建
背景/更多信息/尝试:
SSAS Helper示例CLI会产生相同的错误
我的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>
发展
2
{8CE414BB-95B2-4C99-9E03-51BA72086E22}
Exe
MyRootNamespace
MyAssemblyName
假的
垃圾箱\
项目名称\u表格
开发服务器
开发商
版本11\u 0
项目名称\u表格
模型
违约
假的
记忆中
违约
萨克
萨克
萨克
萨克
bin\Development\
bin\Release\
企业
满满的
代码
总是
使用tabular,您可以运行msbuild。比如说,
msbuild tablerproject8.smproj/verbosity:m/target:Rebuild/property:Configuration=Release这是一个很好的解决方法!虽然
devenv.com
应该像devenv.exe
IMHO一样工作,但至少这可以帮助我构建解决方案(以及)。我没有使用devenv.exe的经验,但本页顶部的说明指出,对于与构建相关的任务,现在建议您使用MSBuild而不是devenv