ohadschn / et4w Goto Github PK
View Code? Open in Web Editor NEWGenerate C# ETW EventSource classes from JSON event specifications using T4
License: Apache License 2.0
Generate C# ETW EventSource classes from JSON event specifications using T4
License: Apache License 2.0
Test by doing a round trip JSON -> class -> JSON (for existing JSONs) and making sure they are the same
Would currently require NuGet support in T4 (for using something like NJsonSchema
/ Manatee.Json
:
Some ideas can be borrowed from similar projects:
Do you know of any specific settings or extensions that may be needed to get the solution to build in Visual Studio 2017?
I cloned the project and loaded the solution in VS 2017 and got the following errors:
1>------ Build started: Project: Tests, Configuration: Debug Any CPU ------
2>------ Build started: Project: NugetTests, Configuration: Debug Any CPU ------
1>c:\GitRepos\FromInternet\ET4W\src\ET4W.ttinclude(158,85): error CS0103: Compiling transformation: The name 'nameof' does not exist in the current context
1>c:\GitRepos\FromInternet\ET4W\src\ET4W.ttinclude(158,92): error CS0118: Compiling transformation: 'System.Diagnostics.Tracing.EventLevel' is a 'type' but is used like a 'variable'
1>C:\GitRepos\FromInternet\ET4W\src\packages\Clarius.TransformOnBuild.1.1.12\build\Clarius.TransformOnBuild.targets(45,9): error MSB3073: The command ""C:\Program Files (x86)\Common Files\Microsoft Shared\TextTemplating\14.0\TextTransform.exe" "C:\GitRepos\FromInternet\ET4W\src\Tests\Events\variedEvents.tt"" exited with code 1.
2>c:\GitRepos\FromInternet\ET4W\src\NugetTests\ET4W\ET4W.ttinclude(150,85): error CS0103: Compiling transformation: The name 'nameof' does not exist in the current context
2>c:\GitRepos\FromInternet\ET4W\src\NugetTests\ET4W\ET4W.ttinclude(150,92): error CS0118: Compiling transformation: 'System.Diagnostics.Tracing.EventLevel' is a 'type' but is used like a 'variable'
2>C:\GitRepos\FromInternet\ET4W\src\packages\Clarius.TransformOnBuild.1.1.12\build\Clarius.TransformOnBuild.targets(45,9): error MSB3073: The command ""C:\Program Files (x86)\Common Files\Microsoft Shared\TextTemplating\14.0\TextTransform.exe" "C:\GitRepos\FromInternet\ET4W\src\NugetTests\events.tt"" exited with code 1.
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========
I was able to open the solution in VS 2015 and get a successful build. The reason I ask about using VS 2017 is because our team is currently developing with that version of the IDE.
I installed the NuGet into a new project and the ET4W.ttinclude file doesn't contain the expected method signature. The file I have contains:
private void WriteEventSource(string eventsFile, string nameSpace, string baseTypeFullyQualifiedName = null)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.