Directly support net472 TFM in unit tests via setting .SetOperatingAssembly(typeof(ViewModel).Assembly) in tests, but only if the test targets NETFRAMEWORK preprocessor symbol.
Generic host tests now exclude both NETCOREAPP2_0 and NETFRAMEWORK, as neither runtime supports generic host APIs.
Convert test code that was previously using Assembly.GetExecutingAssembly().Location or typeof(TypeInThisAssembly).Assembly.Location to use DirectoryUtils.RootDirectory. DirectoryUtils.RootDirectory now uses AppContext.BaseDirectory, as that seems to be the most portable way to identify files to test
Tests that cover FileSystemRazorProject scenarios now use MSBuild Content items rather than None items, and are now configured to CopyAlways.
deterministic builds related changes
Fixes #351 and #350
Add deterministic builds
Use Directory.Build.props to organize all deterministic build-related info, such as package repository, source link to github, etc.
general tidying up
Resharper code clean-up : Remove unused namespaces, invert if statement to reduce nesting, namespaces should follow project name and directory structure
Fix "possible multiple enumeration" warnings emitted via Resharper
net472 related changes
.SetOperatingAssembly(typeof(ViewModel).Assembly)
in tests, but only if the test targetsNETFRAMEWORK
preprocessor symbol.Assembly.GetExecutingAssembly().Location
ortypeof(TypeInThisAssembly).Assembly.Location
to useDirectoryUtils.RootDirectory
.DirectoryUtils.RootDirectory
now usesAppContext.BaseDirectory
, as that seems to be the most portable way to identify files to testContent
items rather thanNone
items, and are now configured toCopyAlways
.deterministic builds related changes
general tidying up
EngineHandler
,DefaultTagHelperFactory
,IEngineFactory
,EngineFactory
,RazorLightEngine
,ITagHelperActivator
,ITagHelperFactory
,TemplatePage
,TemplatePageBase