MSBuildSdks
MSBuildSdks copied to clipboard
[NoTargets]: build assembly with custom tool
I'm trying to use NoTargets to build a custom assembly with ikvm.
I got the builds working, but the assemblies are not passed to referenced test project nor packaged to nuget.
Microsoft.Build.NoTargets is really designed for projects that don't build assemblies and instead copy files around or some other build orchestration actions. It uses the official Microsoft.NET.Sdk logic and just disables anything related to compiling an assembly which probably includes passing around its outputs to referencing projects.
Instead, I suggest you look into overriding key components of Microsoft.NET.Sdk to implement a custom build scenario for other assembly types. Microsoft.NET.Sdk supports languages C#, Visual Basic, and F#. I'd imagine you could override a few targets that are for .NET assemblies with logic for ikvm.