- Can compile a source from strings (TypeDefinition and MemberDefinition). - Can compile from files. - Can compile only to a file (without loading the produced assembly). - Do not recompile and don't reload if the sources have not changed. - Implement `-IgnoreWarnings` to not treat warnings as errors. By default, the cmdlet considers warnings as errors. - Add VisualBasic support. - Add new `-CompilerOptions` parameter to allow setting Roslyn command line parameters including: - Parser options. - Compile options. - Emit options. **ATTENTION:** The `CompilerOptions` can be specified along with other options like `-OutputAssembly`, `-Language` and `-IgnoreWarnings`. The explicit setting parameters will take precedence over the same settings specified in `-CompileOptions`. See docs about the compiler options: https://github.com/dotnet/roslyn/blob/master/docs/compilers/CSharp/CommandLine.md https://github.com/dotnet/roslyn/blob/master/docs/compilers/Visual%20Basic/CommandLine.md **ATTENTION:** `-OutputType` default is `Library`. If `-OutputType` is absent the `-OutputType` default overlaps a value in `CompileOptions`. In other words output type ("target" ot "t" in command line) is always ignored in `CompileOptions`. We have to use `-OutputType` to set an output type. |
||
---|---|---|
.. | ||
common/markdown | ||
csharp | ||
docker/networktest | ||
packaging/windows | ||
powershell | ||
shebang | ||
tools | ||
README.md | ||
Test.Common.props |
Testing
The tests are organized by testing language. Thus Pester tests, which are written in the PowerShell language, are in ./powershell and xUnit tests, written in C#, are in ./csharp. The sanity tests for the Full .NET build of PowerShell are in ./fullclr, and the third-party shebang test is in ./shebang.