Forum member

yusuf

13 posts

Posts by yusuf

  1. NCrunch can't build projects that use generic attributes

    Code to reproduce: [code=csharp]namespace ConsoleApp1; [AttributeUsage(AttributeTargets.All)] public class TestAttribute<T> : Attribute { } [Test<string>] public class Program { public static void Main() { } } [/code] Error message: [code=plain]NCrunch has encoun…

  2. Slow builds on Visual Studio 2022

    Yes, this version solves the issue. Thanks!

  3. Slow builds on Visual Studio 2022

    I have submitted a bug report via Visual Studio. Description contains the link to this page. The slowness is on build that started at 17:37:25.1788. I've waited a few seconds between consecutive runs to be able to differentiate them more easily. There is a suspicious entry on UILogData file at line …

  4. Slow builds on Visual Studio 2022

    Thanks for quick response, but the workaround did not work for me. By the way, seems like there is a pattern to this. I get this slowness consistently on every 5th edit I make.

  5. Slow builds on Visual Studio 2022

    When an edit made in some C# file NCrunch's build step can take up to 5 seconds. You can reproduce this with a simple solution containing only one project and one C# file and it does not have to be a test project. A simple library is enough. Just try duplicating Console.WriteLine(); until you hit th…

  6. Build fails if SourceGenerator project has a package reference.

    I have tried and it built the project successfully after disabling the instrumentation for the code generation project. Thanks for the quick solution.

  7. Build fails if SourceGenerator project has a package reference.

    I use Visual Studio 2019 16.11.0. I have tried again with a fresh clone of the repository and Visual Studio built it on first try without any errors. I know the dependencies of source generators (especially the transient ones) are a pain in the neck at the moment, but it would be great if you can s…

  8. Build fails if SourceGenerator project has a package reference.

    I have created a [url=https://github.com/notanaverageman/NCrunch.SourceGenerators.PackageReference]git repository[/url] to reproduce the issue. It uses the [url=https://github.com/dotnet/roslyn-sdk/blob/0313c80ed950ac4f4eef11bb2e1c6d1009b328c4/samples/CSharp/SourceGenerators/SourceGeneratorSamples/S…

  9. Support for C# source generators?

    Can you reassess this issue and possibly prioritize it? I don't know what blocks you but source generators are fully released and integrated into Visual Studio months ago and getting better tooling support (such as viewing generated files in project tree) with each release. It would solve much of…

  10. Support for C# source generators?

    When I compare the build commands called by NCrunch and MSBuild it seems that the NCrunch one misses the /analyzer=Full_path_to_analyzer_or_analyzer_dependency switches. As I read from GitHub issues, removing the /analyzer switches was the old way of disabling analyzers and /skipAnalyzers+ should be…

  11. Optimized Instrumentation does not work with Avalonia.

    Problem is fixed. Thanks for the quick response.

  12. Optimized Instrumentation does not work with Avalonia.

    Sorry, I forgot to mention that the legacy mode works without issues.

  13. Optimized Instrumentation does not work with Avalonia.

    Hi, Some projects in Avalonia fail to build with NCrunch using instrumentation mode: optimised. Logs have errors similar to the following: [code] ENGINE - [10:52:43.5599-CIL Task Processor-53] ERROR: System.Exception: Unable to instrument type CompiledAvaloniaXaml.!EmbeddedResource due to excep…