nil4 / dotnet-transform-xdt

Modern .NET tools and library for XDT (Xml Document Transformation)
Apache License 2.0
118 stars 12 forks source link

Include xdt tool in .net 4.6.1 web app for .net core causes System.Runtime.InteropServices.RuntimeInformation error when app run #15

Closed techaimail closed 6 years ago

techaimail commented 6 years ago

image

Reference: https://github.com/aspnet/IISIntegration/issues/409#issuecomment-331620595

This tool works fine on web apps using .net core 2.0 with mvc 6 but with .net 4.6.1 with mvc 6 fails.

Thanks

nil4 commented 6 years ago

From what I can see in truncated stack trace in the screenshot, this looks like a runtime error when starting your application (as hinted by WebHostBuilder.Build and WebHost.BuildApplication). It does not look like this tool is involved from the stack trace. It would be very unusual to even have it referenced at runtime, since this is a development-time CLI tool that transforms XML files during build or publish.

If you can publish a small, self-contained project that reproduces the error, I could try to figure out what is happening. However from the information provided so far, the problem does not seem related to the code in this repository.

I'll close the issue for now, but please leave a comment or reopen if you can share a repro that I can investigate further. Thanks.