Version Used: visual studio 16.8.2 and 16.9 preview 1
Intellisense shows members created by the source generator, and you can navigate to the generated code. Building displays the diagnostics. However the diagnostics don't appear in the diagnostics tab when set to show "Intellisense only" diagnostics.
Steps to Reproduce:
- Create a new project referencing StrongInject
- Add a file:
using StrongInject;
public class Container : IContainer<int> {}
- Build, producing this diagnostic:
error SI0102: Error while resolving dependencies for 'int': We have no source for instance of type 'int'
- Navigate to the location of the error.
- The diagnostic does not show up in diagnostics tab when set to show "Intellisense only" diagnostics. Neither do red squigglies appear.
- Intellisense shows the generated members, e.g. when typing (
| marks location of caret) public class Container : IContainer<int> { int x => _| } it will display _disposed in the completion list.
- You can navigate to the generated code, e.g. by clicking goto definition of
_disposed in public class Container : IContainer<int> { int x => _disposed; }
Version Used: visual studio 16.8.2 and 16.9 preview 1
Intellisense shows members created by the source generator, and you can navigate to the generated code. Building displays the diagnostics. However the diagnostics don't appear in the diagnostics tab when set to show "Intellisense only" diagnostics.
Steps to Reproduce:
|marks location of caret)public class Container : IContainer<int> { int x => _| }it will display_disposedin the completion list._disposedinpublic class Container : IContainer<int> { int x => _disposed; }