|
1 |
| -<?xml version="1.0" encoding="utf-8"?> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
3 | 3 | <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
4 | 4 | <PropertyGroup>
|
|
11 | 11 | <AssemblyName>XESmartTarget.Core</AssemblyName>
|
12 | 12 | <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
|
13 | 13 | <FileAlignment>512</FileAlignment>
|
| 14 | + <NuGetPackageImportStamp> |
| 15 | + </NuGetPackageImportStamp> |
14 | 16 | </PropertyGroup>
|
15 | 17 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
16 | 18 | <DebugSymbols>true</DebugSymbols>
|
|
29 | 31 | <ErrorReport>prompt</ErrorReport>
|
30 | 32 | <WarningLevel>4</WarningLevel>
|
31 | 33 | </PropertyGroup>
|
| 34 | + <PropertyGroup> |
| 35 | + <CurrentPlatform>x86</CurrentPlatform> |
| 36 | + <CurrentPlatform Condition="'$(PROCESSOR_ARCHITECTURE)'=='AMD64' or '$(PROCESSOR_ARCHITEW6432)'=='AMD64'">x64</CurrentPlatform> |
| 37 | + </PropertyGroup> |
| 38 | + <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'"> |
| 39 | + <DebugSymbols>true</DebugSymbols> |
| 40 | + <OutputPath>bin\x86\Debug\</OutputPath> |
| 41 | + <DefineConstants>DEBUG;TRACE</DefineConstants> |
| 42 | + <DebugType>full</DebugType> |
| 43 | + <PlatformTarget>x86</PlatformTarget> |
| 44 | + <ErrorReport>prompt</ErrorReport> |
| 45 | + <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> |
| 46 | + </PropertyGroup> |
| 47 | + <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'"> |
| 48 | + <OutputPath>bin\x86\Release\</OutputPath> |
| 49 | + <DefineConstants>TRACE</DefineConstants> |
| 50 | + <Optimize>true</Optimize> |
| 51 | + <DebugType>pdbonly</DebugType> |
| 52 | + <PlatformTarget>x86</PlatformTarget> |
| 53 | + <ErrorReport>prompt</ErrorReport> |
| 54 | + <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> |
| 55 | + </PropertyGroup> |
| 56 | + <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'"> |
| 57 | + <DebugSymbols>true</DebugSymbols> |
| 58 | + <OutputPath>bin\x64\Debug\</OutputPath> |
| 59 | + <DefineConstants>DEBUG;TRACE</DefineConstants> |
| 60 | + <DebugType>full</DebugType> |
| 61 | + <PlatformTarget>x64</PlatformTarget> |
| 62 | + <ErrorReport>prompt</ErrorReport> |
| 63 | + <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> |
| 64 | + </PropertyGroup> |
| 65 | + <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'"> |
| 66 | + <OutputPath>bin\x64\Release\</OutputPath> |
| 67 | + <DefineConstants>TRACE</DefineConstants> |
| 68 | + <Optimize>true</Optimize> |
| 69 | + <DebugType>pdbonly</DebugType> |
| 70 | + <PlatformTarget>x64</PlatformTarget> |
| 71 | + <ErrorReport>prompt</ErrorReport> |
| 72 | + <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> |
| 73 | + </PropertyGroup> |
32 | 74 | <ItemGroup>
|
33 | 75 | <Reference Include="CsvHelper, Version=6.0.0.0, Culture=neutral, PublicKeyToken=8c4959082be5c823, processorArchitecture=MSIL">
|
34 | 76 | <HintPath>..\packages\CsvHelper.6.1.0\lib\net45\CsvHelper.dll</HintPath>
|
35 | 77 | </Reference>
|
36 | 78 | <Reference Include="DouglasCrockford.JsMin, Version=1.1.3.0, Culture=neutral, PublicKeyToken=99147aa1108448b7, processorArchitecture=MSIL">
|
37 | 79 | <HintPath>..\packages\DouglasCrockford.JsMin.1.1.3\lib\net40-client\DouglasCrockford.JsMin.dll</HintPath>
|
38 | 80 | </Reference>
|
39 |
| - <Reference Include="Microsoft.SqlServer.XE.Core, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=AMD64"> |
| 81 | + <Reference Include="Microsoft.SqlServer.Xe.Core, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=AMD64"> |
40 | 82 | <SpecificVersion>False</SpecificVersion>
|
41 |
| - <HintPath>C:\Program Files\Microsoft SQL Server\140\Shared\Microsoft.SqlServer.XE.Core.dll</HintPath> |
| 83 | + <HintPath>..\packages\Microsoft.SqlServer.SqlManagementObjects.140.17283.0\runtimes\win-$(CurrentPlatform)\native\Microsoft.SqlServer.Xe.Core.dll</HintPath> |
42 | 84 | </Reference>
|
43 | 85 | <Reference Include="Microsoft.SqlServer.XEvent.Linq, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=AMD64">
|
44 | 86 | <SpecificVersion>False</SpecificVersion>
|
45 |
| - <HintPath>C:\Program Files\Microsoft SQL Server\140\Shared\Microsoft.SqlServer.XEvent.Linq.dll</HintPath> |
| 87 | + <HintPath>..\packages\Microsoft.SqlServer.SqlManagementObjects.140.17279.0\runtimes\win-$(CurrentPlatform)\native\Microsoft.SqlServer.XEvent.Linq.dll</HintPath> |
| 88 | + <Private>True</Private> |
46 | 89 | </Reference>
|
47 | 90 | <Reference Include="NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
|
48 | 91 | <HintPath>..\packages\NLog.4.4.12\lib\net45\NLog.dll</HintPath>
|
|
59 | 102 | <HintPath>..\packages\System.Runtime.InteropServices.RuntimeInformation.4.3.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll</HintPath>
|
60 | 103 | </Reference>
|
61 | 104 | <Reference Include="System.Web.Extensions" />
|
62 |
| - <Reference Include="System.Xml.Linq" /> |
63 | 105 | <Reference Include="System.Data.DataSetExtensions" />
|
64 | 106 | <Reference Include="Microsoft.CSharp" />
|
65 | 107 | <Reference Include="System.Data" />
|
66 | 108 | <Reference Include="System.Net.Http" />
|
67 | 109 | <Reference Include="System.Xml" />
|
| 110 | + <Reference Include="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"> |
| 111 | + <SpecificVersion>False</SpecificVersion> |
| 112 | + </Reference> |
68 | 113 | </ItemGroup>
|
69 | 114 | <ItemGroup>
|
70 | 115 | <Compile Include="..\SharedAssemblyInfo.cs">
|
|
94 | 139 | <Compile Include="Utils\XEventDataTableAdapter.cs" />
|
95 | 140 | </ItemGroup>
|
96 | 141 | <ItemGroup>
|
| 142 | + <None Include="app.config"> |
| 143 | + <SubType>Designer</SubType> |
| 144 | + </None> |
97 | 145 | <None Include="Config\Sample.json" />
|
98 | 146 | <None Include="packages.config" />
|
99 | 147 | </ItemGroup>
|
|
104 | 152 | </EmbeddedResource>
|
105 | 153 | </ItemGroup>
|
106 | 154 | <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
| 155 | + <Import Project="..\packages\Microsoft.SqlServer.SqlManagementObjects.140.17283.0\build\net40\Microsoft.SqlServer.SqlManagementObjects.targets" Condition="Exists('..\packages\Microsoft.SqlServer.SqlManagementObjects.140.17283.0\build\net40\Microsoft.SqlServer.SqlManagementObjects.targets')" /> |
| 156 | + <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> |
| 157 | + <PropertyGroup> |
| 158 | + <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> |
| 159 | + </PropertyGroup> |
| 160 | + <Error Condition="!Exists('..\packages\Microsoft.SqlServer.SqlManagementObjects.140.17283.0\build\net40\Microsoft.SqlServer.SqlManagementObjects.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.SqlServer.SqlManagementObjects.140.17283.0\build\net40\Microsoft.SqlServer.SqlManagementObjects.targets'))" /> |
| 161 | + </Target> |
107 | 162 | <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
108 | 163 | Other similar extension points exist, see Microsoft.Common.targets.
|
109 | 164 | <Target Name="BeforeBuild">
|
|
0 commit comments