Skip to content

Commit

Permalink
Update so that in the .ttinclude files we use %VSnnnCOMNTOOLS% for De…
Browse files Browse the repository at this point in the history
…v14 and below and $(DevEnvDir) for Dev15.
  • Loading branch information
lajones committed Jul 29, 2016
1 parent c4dd439 commit 013d453
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
8 changes: 4 additions & 4 deletions src/EFTools/EntityDesign/EntityDesign.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@
<DelaySign>true</DelaySign>
</PropertyGroup>
<PropertyGroup>
<VsCommonToolsEnvVarName Condition="$(VisualStudioVersion)=='11.0'">VS110COMNTOOLS</VsCommonToolsEnvVarName>
<VsCommonToolsEnvVarName Condition="$(VisualStudioVersion)=='12.0'">VS120COMNTOOLS</VsCommonToolsEnvVarName>
<VsCommonToolsEnvVarName Condition="$(VisualStudioVersion)=='14.0'">VS140COMNTOOLS</VsCommonToolsEnvVarName>
<VsCommonToolsEnvVarName Condition="$(VisualStudioVersion)=='15.0'">VS150COMNTOOLS</VsCommonToolsEnvVarName>
<VsCommonToolsEnvVarName Condition="$(VisualStudioVersion)=='11.0'">%25VS110COMNTOOLS%25</VsCommonToolsEnvVarName>
<VsCommonToolsEnvVarName Condition="$(VisualStudioVersion)=='12.0'">%25VS120COMNTOOLS%25</VsCommonToolsEnvVarName>
<VsCommonToolsEnvVarName Condition="$(VisualStudioVersion)=='14.0'">%25VS140COMNTOOLS%25</VsCommonToolsEnvVarName>
<VsCommonToolsEnvVarName Condition="$(VisualStudioVersion)=='15.0'">%24(DevEnvDir)</VsCommonToolsEnvVarName>
</PropertyGroup>
<Import Project="$(RepositoryRoot)tools\EFToolsVsReferences.settings.targets" />
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<#@ assembly name="System.Xml" #>
<#@ assembly name="System.Xml.Linq"#>
<#@ assembly name="EnvDTE"#>
<#@ assembly name="%VERSIONED_VSCOMNTOOLS_ENV_VAR%..\IDE\EntityFramework.dll" #>
<#@ assembly name="%VERSIONED_VSCOMNTOOLS_ENV_VAR%..\IDE\Microsoft.Data.Entity.Design.dll" #>
<#@ assembly name="VERSIONED_VSCOMNTOOLS_ENV_VAR..\IDE\EntityFramework.dll" #>
<#@ assembly name="VERSIONED_VSCOMNTOOLS_ENV_VAR..\IDE\Microsoft.Data.Entity.Design.dll" #>
<#@ import namespace="System" #>
<#@ import namespace="System.Linq" #>
<#@ import namespace="System.IO" #>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<#@ assembly name="System.Xml" #>
<#@ assembly name="System.Xml.Linq"#>
<#@ assembly name="EnvDTE"#>
<#@ assembly name="%VERSIONED_VSCOMNTOOLS_ENV_VAR%..\IDE\EntityFramework.dll" #>
<#@ assembly name="%VERSIONED_VSCOMNTOOLS_ENV_VAR%..\IDE\Microsoft.Data.Entity.Design.dll" #>
<#@ assembly name="VERSIONED_VSCOMNTOOLS_ENV_VAR..\IDE\EntityFramework.dll" #>
<#@ assembly name="VERSIONED_VSCOMNTOOLS_ENV_VAR..\IDE\Microsoft.Data.Entity.Design.dll" #>
<#@ import namespace="System" #>
<#@ import namespace="System.Linq" #>
<#@ import namespace="System.IO" #>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
// ++++++++++++++++++++++++++++++++++++++++++++++++++
// NOTE: This include template also requires an assembly
// reference to %VERSIONED_VSCOMNTOOLS_ENV_VAR%\Microsoft.Data.Entity.Design.DatabaseGeneration.dll
// reference to %VSnnnCOMNTOOLS% or $(DevEnvDir)\Microsoft.Data.Entity.Design.DatabaseGeneration.dll
// and a namespace reference to Microsoft.Data.Entity.Design.DatabaseGeneration
// in the parent template. Commented-out examples are provided below (replace '!' with '#'):
// <!@ assembly name="%VS110COMNTOOLS%..\IDE\Microsoft.Data.Entity.Design.DatabaseGeneration.dll" !>
// <!@ import namespace="Microsoft.Data.Entity.Design.DatabaseGeneration" !>
// or
// <!@ assembly name="$(DevEnvDir)Microsoft.Data.Entity.Design.DatabaseGeneration.dll" !>
// <!@ import namespace="Microsoft.Data.Entity.Design.DatabaseGeneration" !>
// ++++++++++++++++++++++++++++++++++++++++++++++++++
#>
<#@ assembly name="System.Core" #>
Expand Down
10 changes: 5 additions & 5 deletions src/EFTools/EntityDesign/TextTemplates/SsdlToSql10.tt
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
// of the SSDL. This T-SQL is compatible with SQL 2012, 2008, 2005, CE, and Azure databases.
//---------------------------------------------------------------------
// Note: We will resolve all paths in assembly directives at runtime, taking
// macros and environment variables into account (e.g. $(ProjectDir), %VERSIONED_VSCOMNTOOLS_ENV_VAR% etc.)
// macros and environment variables into account (e.g. $(ProjectDir), VERSIONED_VSCOMNTOOLS_ENV_VAR etc.)
#>
<#@ assembly name="System.Core" #>
<#@ assembly name="%VERSIONED_VSCOMNTOOLS_ENV_VAR%..\IDE\Microsoft.Data.Entity.Design.DatabaseGeneration.dll"#>
<#@ assembly name="%VERSIONED_VSCOMNTOOLS_ENV_VAR%..\IDE\EntityFramework.dll"#>
<#@ assembly name="%VERSIONED_VSCOMNTOOLS_ENV_VAR%..\IDE\EntityFramework.SqlServer.dll" #>
<#@ assembly name="%VERSIONED_VSCOMNTOOLS_ENV_VAR%..\IDE\EntityFramework.SqlServerCompact.dll" #>
<#@ assembly name="VERSIONED_VSCOMNTOOLS_ENV_VAR..\IDE\Microsoft.Data.Entity.Design.DatabaseGeneration.dll"#>

This comment has been minimized.

Copy link
@divega

divega Aug 2, 2016

Contributor

is this change correct?

This comment has been minimized.

Copy link
@lajones

lajones Aug 2, 2016

Author Contributor

Yes. The %'s are now part of what is replaced because for Dev15 we replace with $(DevEnvDir) instead. See the .csproj file above.

This comment has been minimized.

Copy link
@divega

divega Aug 2, 2016

Contributor

Makes sense. Thanks.

<#@ assembly name="VERSIONED_VSCOMNTOOLS_ENV_VAR..\IDE\EntityFramework.dll"#>
<#@ assembly name="VERSIONED_VSCOMNTOOLS_ENV_VAR..\IDE\EntityFramework.SqlServer.dll" #>
<#@ assembly name="VERSIONED_VSCOMNTOOLS_ENV_VAR..\IDE\EntityFramework.SqlServerCompact.dll" #>
<#@ import namespace="System.Linq" #>
<#@ import namespace="System.Text" #>
<#@ import namespace="System.Collections.Generic" #>
Expand Down

0 comments on commit 013d453

Please sign in to comment.