Updated ProjectModel
- Added PackOptions, RuntimeOptions, PublishOptions and updated CompilationOptions - Added IncludeFilesResolver to parse include, exclude patterns - Added compile, embed and copyToOutput to compilationOptions - Renamed compilationOptions to buildOptions - Moved compilerName into buildOptions - This change is backwards compatible - Added warnings to be shown when the old schema is used - Handled diagnostic messages in ProjectReader - Added unit and end to end tests
This commit is contained in:
parent
1f0910ebcc
commit
44fd8bc2de
49 changed files with 1600 additions and 277 deletions
13
TestAssets/TestProjects/EndToEndTestApp/Program.cs
Normal file
13
TestAssets/TestProjects/EndToEndTestApp/Program.cs
Normal file
|
@ -0,0 +1,13 @@
|
|||
using System;
|
||||
|
||||
namespace ConsoleApplication
|
||||
{
|
||||
public class Program
|
||||
{
|
||||
public static int Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("Hello World!");
|
||||
return 100;
|
||||
}
|
||||
}
|
||||
}
|
0
TestAssets/TestProjects/EndToEndTestApp/copy/file.txt
Normal file
0
TestAssets/TestProjects/EndToEndTestApp/copy/file.txt
Normal file
0
TestAssets/TestProjects/EndToEndTestApp/copy/fileex.txt
Normal file
0
TestAssets/TestProjects/EndToEndTestApp/copy/fileex.txt
Normal file
31
TestAssets/TestProjects/EndToEndTestApp/project.json
Normal file
31
TestAssets/TestProjects/EndToEndTestApp/project.json
Normal file
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
"version": "1.0.0-*",
|
||||
"buildOptions": {
|
||||
"emitEntryPoint": true,
|
||||
"embed": {
|
||||
"include": "*.resx",
|
||||
"mappings": {
|
||||
"myresource.resx": "resource2.resx"
|
||||
}
|
||||
},
|
||||
"copyToOutput": {
|
||||
"include": "copy/*.txt",
|
||||
"excludeFiles": "copy/fileex.txt"
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"Microsoft.NETCore.App": "1.0.0-rc2-*"
|
||||
},
|
||||
"packOptions": {
|
||||
"files": {
|
||||
"includeFiles": "packfiles/pack1.txt",
|
||||
"mappings": {
|
||||
"newpath/": "packfiles/pack2.txt"
|
||||
}
|
||||
}
|
||||
},
|
||||
"publishOptions": "testpublishfile.txt",
|
||||
"frameworks": {
|
||||
"netcoreapp1.0": { }
|
||||
}
|
||||
}
|
4
TestAssets/TestProjects/EndToEndTestApp/resource1.resx
Normal file
4
TestAssets/TestProjects/EndToEndTestApp/resource1.resx
Normal file
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
Some content
|
||||
</root>
|
4
TestAssets/TestProjects/EndToEndTestApp/resource2.resx
Normal file
4
TestAssets/TestProjects/EndToEndTestApp/resource2.resx
Normal file
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
Some content
|
||||
</root>
|
Loading…
Add table
Add a link
Reference in a new issue