Skip to content

Commit

Permalink
Merge pull request #34 from Microsoft/develop
Browse files Browse the repository at this point in the history
2.1.1 release
  • Loading branch information
Tuatan authored Jun 12, 2017
2 parents 7cd3813 + e78bc40 commit 57e2f53
Show file tree
Hide file tree
Showing 130 changed files with 2,140 additions and 3,359 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![Nuget](https://img.shields.io/nuget/vpre/Tx.All.svg)](https://www.nuget.org/packages/Tx.All/)
![Build](https://ecs10.visualstudio.com/_apis/public/build/definitions/79dfec19-0be4-4364-86ec-b0b3146b0dc3/19/badge)
[![Build status](https://ci.appveyor.com/api/projects/status/6n09scr9d74lb9vp?svg=true)](https://ci.appveyor.com/project/SergeyBaranchenkov/tx-6doyh)

# Tx (LINQ to Logs and Traces)

Expand Down
Binary file modified References/LinqPad/LINQPad.exe
Binary file not shown.
43 changes: 41 additions & 2 deletions References/LinqPad/LINQPad.exe.config
Original file line number Diff line number Diff line change
@@ -1,9 +1,48 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" />
</startup>
<runtime>
<legacyUnhandledExceptionPolicy enabled="1" />
<loadFromRemoteSources enabled="true" />
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Collections.Immutable" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.2.1.0" newVersion="1.2.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.IO.Compression" publicKeyToken="b77a5c561934e089" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.IO.FileSystem" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.IO.FileSystem.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Security.Cryptography.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Xml.XPath.XDocument" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Diagnostics.FileVersionInfo" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Threading.Thread" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
</dependentAssembly>
<probing privatePath="ngen003" />
</assemblyBinding>
</runtime>
<appSettings>
<add key="EnableWindowsFormsHighDpiAutoResizing" value="true" />
</appSettings>
</configuration>
4 changes: 2 additions & 2 deletions Samples/LinqPad/Queries/create_samples_package.cmd
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
del c:\bin\samples.zip
..\..\..\Tools\zip -r c:\bin\samples.zip header.xml NoManifest HTTP.sys IE_IIS "Performance Counters" SqlXevent WcfTroubleshooting
if exist %1 del %1 || goto failFast
..\..\..\Tools\zip -r %1 header.xml NoManifest HTTP.sys IE_IIS "Performance Counters" SqlXevent WcfTroubleshooting
9 changes: 0 additions & 9 deletions Source/AssemblyInfo.cs

This file was deleted.

107 changes: 59 additions & 48 deletions Source/Build.cmd
Original file line number Diff line number Diff line change
@@ -1,70 +1,81 @@
set bin="c:\Bin"
set sourceFolder=%~dp0
set dropFolder=%~dp0

if not exist "%bin%" mkdir %bin% || goto failFast
(
set /p versionParam=
)<%sourceFolder%version.txt

if "%1"=="NoBuild" goto noBuild
echo %versionParam%

pushd %~dp0

msbuild Tx.sln /p:Configuration=Release45 /p:Platform="Any CPU" || goto failFast
msbuild Tx.sln /p:Configuration=Debug45 /p:Platform="Any CPU" || goto failFast
rem set msbuildPath="C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\msbuild.exe"
set msbuildPath="msbuild"

pushd
cd /d %sourceFolder%SetVersion || goto failFast
dotnet restore || goto failFast
dotnet msbuild /p:Configuration=Release || goto failFast
popd

:noBuild
pushd %sourceFolder%..\Samples\LinqPad\Queries || goto failFast
call create_samples_package.cmd %dropFolder%samples.zip
popd

copy ..\tools\NuGet.exe %bin%\ || goto failFast
copy ..\tools\zip.exe %bin%\ || goto failFast
copy ..\tools\PushPackages.cmd %bin%\ || goto failFast
call :pack Tx.Core || goto failFast
call :pack Tx.Windows || goto failFast
call :pack Tx.Bond || goto failFast
call :pack Tx.Network || goto failFast
call :pack Tx.SqlServer || goto failFast

pushd ..\Samples\LinqPad\Queries || goto failFast
call create_samples_package.cmd
pushd
%sourceFolder%SetVersion\bin\Release\SetVersion.exe %versionParam% %sourceFolder%Tx.Windows.TypeGeneration\Tx.Windows.TypeGeneration.csproj || goto failFast
cd /d %sourceFolder%Tx.Windows.TypeGeneration || goto failFast
dotnet restore || goto failFast
dotnet build -c=Release || goto failFast
%sourceFolder%SetVersion\bin\Release\SetVersion.exe %versionParam% %sourceFolder%EtwEventTypeGen\EtwEventTypeGen.csproj || goto failFast
%sourceFolder%SetVersion\bin\Release\SetVersion.exe %versionParam% %sourceFolder%EtwEventTypeGen\Properties\Tx.Windows.TypeGeneration.nuspec || goto failFast
cd /d %sourceFolder%EtwEventTypeGen || goto failFast
dotnet restore || goto failFast
dotnet build -c=Release || goto failFast
copy %sourceFolder%EtwEventTypeGen\Properties\Tx.Windows.TypeGeneration.nuspec %sourceFolder%EtwEventTypeGen\bin\Release\net45\ || goto failFast
cd /d %sourceFolder%EtwEventTypeGen\bin\Release\net45 || goto failFast
%sourceFolder%..\tools\NuGet pack Tx.Windows.TypeGeneration.nuspec || goto failFast
move %sourceFolder%EtwEventTypeGen\bin\Release\net45\Tx.Windows.TypeGeneration.%versionParam%*.nupkg %dropFolder% || goto failFast
popd

pushd

cd /d %bin%\Debug || goto failFast
call :setVersion || goto failFast
call :packAll || goto failFast

cd /d %bin%\Release || goto failFast
call :setVersion || goto failFast
call :packAll || goto failFast

cd /d %bin%\Release\Net45 || goto failFast
..\..\zip.exe ..\..\Tx.LinqPad.lpx header.xml System.Reactive.Interfaces.dll System.Reactive.Core.dll System.Reactive.Linq.dll System.Reactive.PlatformServices.dll System.Reactive.Windows.Forms.dll Tx.Core.dll Tx.Windows.dll Tx.Windows.TypeGeneration.dll Tx.SqlServer.dll msvcr100.dll xe.dll Microsoft.SqlServer.XE.Core.dll Microsoft.SqlServer.XEvent.Configuration.dll Microsoft.SqlServer.XEvent.dll Microsoft.SqlServer.XEvent.Linq.dll Microsoft.SqlServer.XEvent.Targets.dll Tx.LinqPad.dll HTTP_Server.man HTTP_Server.etl BasicPerfCounters.blg CrossMachineHTTP.etl CrossMachineIE.etl IE_Client.man sqltrace.xel Microsoft.Windows.ApplicationServer.Applications.man SampleWcfTrace.etl || goto failFast

%sourceFolder%SetVersion\bin\Release\SetVersion.exe %versionParam% %sourceFolder%Tx.Linqpad\Tx.Linqpad.csproj || goto failFast
cd /d %sourceFolder%Tx.Linqpad || goto failFast
dotnet restore || goto failFast
%msbuildPath% /p:Configuration=Release || goto failFast
cd /d %sourceFolder%Tx.Linqpad\bin\Release\net46 || goto failFast
%sourceFolder%..\tools\zip.exe %dropFolder%Tx.LinqPad.lpx header.xml System.Reactive.Interfaces.dll System.Reactive.Core.dll System.Reactive.Linq.dll System.Reactive.PlatformServices.dll System.Reactive.Windows.Forms.dll Tx.Core.dll Tx.Windows.dll Tx.Windows.TypeGeneration.dll Tx.SqlServer.dll %sourceFolder%..\References\XEvent\msvcr100.dll %sourceFolder%..\References\XEvent\xe.dll Microsoft.SqlServer.XE.Core.dll Microsoft.SqlServer.XEvent.Configuration.dll Microsoft.SqlServer.XEvent.dll Microsoft.SqlServer.XEvent.Linq.dll Microsoft.SqlServer.XEvent.Targets.dll Tx.LinqPad.dll HTTP_Server.man HTTP_Server.etl BasicPerfCounters.blg CrossMachineHTTP.etl CrossMachineIE.etl IE_Client.man sqltrace.xel Microsoft.Windows.ApplicationServer.Applications.man SampleWcfTrace.etl || goto failFast
popd
goto end

:setVersion

pushd Net45\Properties || goto failFast
..\SetVersion.exe || goto failFast
pushd
%sourceFolder%SetVersion\bin\Release\SetVersion.exe %versionParam% %sourceFolder%Tx.All\Tx.All.nuspec || goto failFast
cd /d %sourceFolder%Tx.All || goto failFast
%sourceFolder%..\tools\NuGet pack Tx.All.nuspec || goto failFast
move %sourceFolder%Tx.All\Tx.All.*.nupkg %dropFolder%\ || goto failFast
popd

exit /b 0
cd %dropFolder%
del /q Tx.%versionParam%.zip
%sourceFolder%..\tools\zip.exe Tx.%versionParam%.zip samples.zip Tx.LinqPad.lpx || goto failFast

:packAll
call :pack Tx.Core || goto failFast
call :pack Tx.Windows || goto failFast
call :pack Tx.Bond || goto failFast
call :pack Tx.Network || goto failFast
call :pack Tx.Windows.TypeGeneration || goto failFast
call :pack Tx.SqlServer || goto failFast
call :pack Tx.All || goto failFast
for /f "usebackq delims=|" %%f in (`dir /b "*.nupkg"`) do %sourceFolder%..\tools\zip.exe Tx.%versionParam%.zip %%f

exit /b 0
goto end

:pack %1
call Net45\Properties\%1.Layout.cmd || goto failFast
cd /d %1 || goto failFast
copy ..\Net45\Properties\%1.nuspec || goto failFast
..\..\NuGet pack %1.nuspec || goto failFast
move *.nupkg ..\ || goto failFast
cd ..
rd /s/q %1 || goto failFast
exit /b 0

%sourceFolder%SetVersion\bin\Release\SetVersion.exe %versionParam% %sourceFolder%%1\%1.csproj || goto failFast

pushd
cd /d %sourceFolder%%1 || goto failFast
dotnet restore || goto failFast
dotnet build -c=Release || goto failFast
move %sourceFolder%%1\bin\Release\%1.*.nupkg %dropFolder% || goto failFast
popd

:end
cd %~dp0
Expand Down
64 changes: 4 additions & 60 deletions Source/EtwEventTypeGen/EtwEventTypeGen.csproj
Original file line number Diff line number Diff line change
@@ -1,67 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{D8051D89-46E1-47E0-AA9A-9B352AE3CC11}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Microsoft.Etw</RootNamespace>
<AssemblyName>EtwEventTypeGen</AssemblyName>
<FileAlignment>512</FileAlignment>
<SccProjectName>
</SccProjectName>
<SccLocalPath>
</SccLocalPath>
<SccAuxPath>
</SccAuxPath>
<SccProvider>
</SccProvider>
<TargetFramework>net45</TargetFramework>
<Version>2.1.1</Version>
</PropertyGroup>
<Import Project="..\..\Common.targets" />
<PropertyGroup>
<CPReferencePath>..\..\References\$(BuildFlavor)</CPReferencePath>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>..\key.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="Accessibility">
<EmbedInteropTypes>True</EmbedInteropTypes>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
</ItemGroup>
<ItemGroup>
<None Include="..\key.snk" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Tx.Windows.TypeGeneration\Tx.Windows.TypeGeneration.csproj">
<Project>{a4517abd-d558-42f3-8fe4-2a6ba3074014}</Project>
<Name>Tx.Windows.TypeGeneration</Name>
</ProjectReference>
<ProjectReference Include="..\Tx.Windows\Tx.Windows.csproj">
<Project>{c4043abb-ec40-4194-b15b-c0d13c2cf5c8}</Project>
<Name>Tx.Windows</Name>
</ProjectReference>
<ProjectReference Include="..\Tx.Windows.TypeGeneration\Tx.Windows.TypeGeneration.csproj" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
24 changes: 0 additions & 24 deletions Source/EtwEventTypeGen/Properties/AssemblyInfo.cs

This file was deleted.

27 changes: 27 additions & 0 deletions Source/EtwEventTypeGen/Properties/Tx.Windows.TypeGeneration.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<package>
<metadata>
<id>Tx.Windows.TypeGeneration</id>
<title>Tx.Windows.TypeGeneration</title>
<!-- Automatically updated by build, keeping fixed dev build number here in case of local build -->
<version>2.1.1</version>
<description>Tx (LINQ to Logs and Traces) components for generation of C# types representing Event Tracing for Windows (ETW) and Event Log events</description>
<authors>Microsoft</authors>
<copyright>Copyright © Microsoft. All Rights Reserved</copyright>
<projectUrl>http://tx.codeplex.com</projectUrl>
<licenseUrl>http://tx.codeplex.com/license</licenseUrl>
<language>en-us</language>
<tags>Tx Traces Logs Playback Replay ETW</tags>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<dependencies>
<dependency id="Tx.Windows" version="2.1.1" />
</dependencies>
</metadata>
<files>
<file src="Tx.Windows.TypeGeneration.dll" target="lib\net45" />
<file src="Tx.Windows.TypeGeneration.pdb" target="lib\net45" />
<file src="Tx.Windows.TypeGeneration.xml" target="lib\net45" />
<file src="EtwEventTypeGen.exe" target="tools\net45" />
<file src="EtwEventTypeGen.pdb" target="tools\net45" />
</files>
</package>
6 changes: 6 additions & 0 deletions Source/SetVersion/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>
Loading

0 comments on commit 57e2f53

Please sign in to comment.