Commit graph

297 commits

Author SHA1 Message Date
Bryan Thornbury
7665e99edd Add -lrt to RyuJit mode, not cpp 2015-11-19 13:52:16 -08:00
Bryan Thornbury
f3f0d389d8 Add -Xlinker -lrt to fix issues with linking libSystem.Native.a, change --ilc-args to --ilcargs 2015-11-19 12:29:30 -08:00
Livar Cunha
cd97e2d8c6 Replacing TABs with SPACEs in WindowsLinkStep 2015-11-19 10:35:05 -08:00
Livar Cunha
fe110f4497 Fixing the path for the includes in windows for cpp native 2015-11-18 17:21:46 -08:00
Bryan
8b66db56c6 Link in msvcrt, Fix output path bug 2015-11-18 17:03:29 -08:00
Livar Cunha
d0100335da Changing native out flag to output flag to match compiler. Also changing the rsp file spliting to handle both /r/n and /r
Fixing the input path to the native compiler. It was adding /native to it before.

Switching compile native to System.CommandLine for args parsing and removing quotes from -native.rsp.

Fixing build_appdeps.cmd: Removed the * from __ApPDepSDK as xcopy does not honor that. In order to stay independent of the version of appDep, we CD into the appDepSDK and then navigate to the first folder we find, which should always be one, as we clear the folder before restoring appDep, after that we xcopy
2015-11-18 17:03:28 -08:00
Bryan Thornbury
9fbf7a7995 Add msvcrt library to link step 2015-11-18 17:02:30 -08:00
Andrew Stanton-Nurse
04624ff5d1 add script executor
also added a postcompile script to each project to place the outputs in the right folder

fixes #237
2015-11-18 14:28:07 -08:00
Andrew Stanton-Nurse
d415aa705b clean up the SLN and projects 2015-11-18 12:05:13 -08:00
David Fowler
8370a2b929 Fixed compilation error 2015-11-18 06:48:31 -08:00
Piotr Puszkiewicz
c284a7492a Merge pull request #217 from brthor/dotnet-compile-natives
dotnet-compile-native
Thanks for getting this in!
2015-11-18 02:11:11 -08:00
Bryan
325a5af4cf Merge branch 'dotnet-compile-natives' of https://github.com/brthor/cli into dotnet-compile-natives 2015-11-18 01:54:28 -08:00
Bryan
1455d9151d Don't copy Appdeps on mac. Bump appdep package version number 2015-11-18 01:53:05 -08:00
Bryan Thornbury
bd9277e906 Merge pull request #1 from piotrpMSFT/brthor-dotnet-compile-natives
Brthor dotnet compile natives
2015-11-18 01:34:04 -08:00
Bryan
8768b873bd Fix Windows AppDep, bump ILCompiler Version to fix cache issue 2015-11-18 01:19:06 -08:00
Zlatko Knezevic
23e19d326a Fix READMEs in command folders
Some of the README.md files in the commands' folders weren't valid.
Changing them to better illustrate the current state.
2015-11-18 01:15:07 -08:00
piotrp
f382872c41 Adding Readme.md
Cleaning up some options
Renaming BuildType to BuildConfiguration
2015-11-18 00:34:09 -08:00
Andy Gocke
b011e7f8a4 Also set publicsign when not on windows 2015-11-18 00:00:31 -08:00
Andy Gocke
869b927350 Upgrade csc ref to latest
Provides a few benefits:

1) The new package has the correct dependencies listed, so I removed the
-MissingDependenciesOK flag from the crossgen scripts.

2) The new compiler supports -publicSign (formerly called "OSS sign"),
which I patched through dotnet-compile-csc .
2015-11-17 23:37:39 -08:00
piotrp
42e557408a Adding to sln 2015-11-17 23:01:48 -08:00
Piotr Puszkiewicz
380eda370c Merge pull request #209 from dotnet/anurse/202-duplicated-help
fix #202 by exiting on invalid option
2015-11-17 22:04:05 -08:00
Bryan
56d4e15040 Adding missing files 2015-11-17 20:39:08 -08:00
Bryan
5db8ae5e6d Code Review Feedback 2015-11-17 20:39:07 -08:00
Bryan
fd471025dc Linux CPP Mode Working. 2015-11-17 20:38:59 -08:00
Bryan
1952e6d972 Dotnet compile include project dependencies 2015-11-17 20:38:04 -08:00
Bryan
1576ffeb15 Dotnet compile --native integration with rsp file 2015-11-17 20:38:04 -08:00
Bryan
4141e1ec5b Pin Dependencies in project.json, fix version of ObjectWriter 2015-11-17 20:38:03 -08:00
Bryan
c32b262eef ILC Path in settings 2015-11-17 20:36:29 -08:00
Bryan
3c0b0ce73c Change ILToNative Path to ilcpath 2015-11-17 20:36:29 -08:00
Bryan
17232e836d Code Review Feedback. Refactor Config Class Name 2015-11-17 20:36:28 -08:00
Bryan
22b3b497e0 Fixes for Windows. 2015-11-17 20:36:27 -08:00
Bryan
da8bd2a6f6 dotnet-compile-native
Supports IL to Native compilation on Windows using CPP and RyuJit Code
Generators. Supports RyuJit Code generation on Linux.
2015-11-17 20:36:26 -08:00
Krzysztof Wicher
427101e36c simplify template project.json 2015-11-17 12:26:14 -08:00
Krzysztof Wicher
872f842522 use reporter and c#6 features 2015-11-17 12:09:10 -08:00
Krzysztof Wicher
5d1c908d49 change Dictionary<string, string> to var 2015-11-17 11:46:47 -08:00
Krzysztof Wicher
b566be5de8 Add dotnet-init 2015-11-17 11:46:46 -08:00
Livar Cunha
1e357a2e03 ResourceWriter requires that AddResource be called at least one before generate. However, when we have an empty resx, AddResource does not get called which causes resgen to crash when ResourceWriter.Generate gets called. 2015-11-17 09:56:35 -08:00
Piotr Puszkiewicz
92857c7298 Merge pull request #197 from blackdwarf/master
Add MD files per command and documentation directory
2015-11-16 22:12:17 -08:00
Andrew Stanton-Nurse
8c5a0490b5 remove unnecessary argument on PrintHelp 2015-11-16 20:26:52 -08:00
Zlatko Knezevic
5156afa505 Add MD files per command and documentation directory
Add README.md files with the contents of the "man pages" per directory that
implements all or part of the command. This way, we will enable easier
perusal of our repo as well as have an initial set of documentation published.
Add "documentation" directory as well for future work.
2015-11-16 20:11:21 -08:00
PiotrP
e839b4debb Update Copyright headers in all source files. 2015-11-16 19:47:43 -08:00
David Fowler
98390d50e0 Don't require all dotnet tools to be on the path
- Try resolving full path to executable in the local directory first.
2015-11-16 18:21:15 -08:00
Andrew Stanton-Nurse
1dbc62866d fix #202 by exiting on invalid option 2015-11-16 17:39:03 -08:00
Andrew Stanton-Nurse
4cc15b1246 restructure the output layout
also reorganize the scripts folder
2015-11-16 09:44:00 -08:00
David Fowler
df3a5fba7a First pass at dotnet-pack
- Ported nuget package building code over from dnu. Moved that code to use NuGet v3 primitives.
- Simplified the package builder API
- Left out resources and schema detection for now
- This folder should remain self contained as the code will be copied into NuGet v3.
- Missing features include symbols packages
2015-11-15 09:12:48 -08:00
Andrew Stanton-Nurse
9718a4818c update NuGet.Packaging reference 2015-11-12 10:38:57 -08:00
Andy Gocke
5bfb626799 Upgrade compiler version and fix crossgen
The latest compiler nugets have missing dependencies, so
this temporarily turns on -MissingDependenciesOK for crossgen
2015-11-11 16:33:06 -08:00
Charles Stoner
a4164dbf11 Merge pull request #170 from cston/version
Update Microsoft.Net.Compilers.netcore version
2015-11-09 12:11:27 -08:00
David Fowler
df8ac0c7ce Added initial workspace implementation for project.json 2015-11-09 11:37:16 -08:00
Charles Stoner
3b8b7b6cb0 Update Microsoft.Net.CSharp.Interactive.netcore version 2015-11-09 10:27:01 -08:00
David Fowler
215b53c6ab Added a basic workspace implementation
- This is a port of a simple project.json workspace I wrote a while back. It's been updating to use the new APIs (which actually made it much easier to implement).
2015-11-09 00:23:46 -08:00
David Fowler
5711d1764d Rename strongName: true to useOssSigning 2015-11-09 00:19:39 -08:00
David Fowler
cb471485a9 Change the line number for version conflcits
- Use the project.json that caused the conflict
2015-11-08 10:22:09 -08:00
David Fowler
b343d121a3 Show more dependency warnings
- Show version conflicts
- Fixed the formatting of version ranges
- Fixed conflicts found in the cli
2015-11-08 09:52:28 -08:00
David Fowler
82f3b22308 Removed extra space 2015-11-08 07:39:23 -08:00
David Fowler
1470ab60d2 Fix dependency issues
- Normal behaviors things were being shown as warnings. Cousin dependencies
always get version bumped.
2015-11-08 07:38:42 -08:00
David Fowler
41516f5a37 Fix up some error handling
- Don't flood console with compilation errors
if the framework isn't installed.
- Split errors into unspecified reference assembly base path and uninstalled framework.
2015-11-07 23:53:05 -08:00
David Fowler
b334c8f28c Fixed a few issues with lock file check
- Normalize version for comparison
- Change dnu restore to dotnet restore in
error message
2015-11-07 02:24:53 -08:00
David Fowler
8ebc1bf9f5 Fixed argument parsing issues with resources 2015-11-07 01:52:59 -08:00
Charles Stoner
d244b07dc5 Merge pull request #162 from cston/repl
Rename 'dotnet interactive' to 'dotnet repl'
2015-11-06 19:31:14 -08:00
Charles Stoner
73ae3e8afb Rename 'dotnet interactive' to 'dotnet repl' 2015-11-06 19:07:38 -08:00
David Fowler
8eb933d827 Arg typo 2015-11-06 17:30:11 -08:00
David Fowler
5b59b69d70 Only attempt to compile to native if managed passed 2015-11-06 17:29:35 -08:00
Charles Stoner
1ef48cc094 Revert change to 'dotnet run --project' argument 2015-11-06 08:18:36 -08:00
David Fowler
25c35907b8 Copy the "copy to output" files on compile 2015-11-06 06:15:26 -08:00
David Fowler
f1f1db0d8e Support language version based on schema 2015-11-06 05:53:16 -08:00
David Fowler
b50ae8bbeb Resolve the full path to the key file 2015-11-06 05:24:13 -08:00
Charles Stoner
e2cdf17e2e Add Microsoft.DotNet.Tools.Interactive 2015-11-05 08:54:20 -08:00
Sridhar Periyasamy
54847cf032 Merge pull request #150 from Sridhar-MS/upgrade-refs
Upgrade references to 23504.
2015-11-04 13:09:49 -08:00
Andy Gocke
7a0ded7654 Merge pull request #92 from agocke/MoveOptionsToCsc
Create (de)serializer for CompilerOptions
2015-11-04 12:58:56 -08:00
Andy Gocke
da8f254cb4 PR comments 2015-11-04 12:04:51 -08:00
Andrew Stanton-Nurse
d55f9a6e89 boo tabs 2015-11-04 10:49:45 -08:00
Sridhar Periyasamy
f211414d6e Upgrade references to 23504. It has the fix in System.Diagnotics.Process
for the Ubuntu hang.
2015-11-04 10:31:40 -08:00
Andy Gocke
a60a030bca Fixup merge 2015-11-03 15:36:06 -08:00
Andy Gocke
9d5f435ef5 Create (de)serializer for CompilerOptions
This allows language-specific compile utilities to map a set of
common arguments to their compiler's specific argument set.
2015-11-03 12:03:40 -08:00
Andy Gocke
b1d3ef4b75 Merge pull request #143 from agocke/ChangeCMakeIdToGNU
Fix the Cmake GCC identifier
2015-11-03 11:26:16 -08:00
Andy Gocke
a5a19be253 Fix the Cmake GCC identifier
GCC is 'GNU', not 'GCC'.
2015-11-03 10:56:33 -08:00
Piotr Puszkiewicz
f176ae9387 Merge pull request #142 from dotnet/anurse/fix-ubuntu-cmake
Fix cmake dependency on Ubuntu

Thanks @anurse!!
2015-11-03 10:42:51 -08:00
Andrew Stanton-Nurse
bf0b0c93cb this should fix cmake on Ubuntu 14.04 2015-11-03 10:08:59 -08:00
David Fowler
db6464356c Print the time for compilation without verbose 2015-11-03 01:08:57 -08:00
David Fowler
a887a984f5 Always use temp folder for run
- Both output and intermediate
2015-11-03 00:01:04 -08:00
Andy Gocke
e338f0415c Update everything to 23502 and add Tools.Run to sln 2015-11-02 21:47:18 -08:00
Andy Gocke
7dd429f047 Enable Roslyn crossgen on osx/linux
Also updates the runtime to 23502, which contains the crossgen
utility in the xplat runtime packages.
2015-11-02 16:44:03 -08:00
anurse
b35fba863b command line interface clean-up 2015-11-01 21:08:01 -08:00
David Fowler
d39f492300 Add the --debug argument to mono if in debug configuration 2015-11-01 20:41:58 -08:00
David Fowler
e372b32b61 Overwrite existing env vars 2015-11-01 06:24:31 -08:00
David Fowler
27f8300e82 Flow the intermediate output path to project refs 2015-11-01 05:50:39 -08:00
David Fowler
b5ebe855ad Change how paths to project references are resolved
- Removed project path resolution from ProjectModel
- Flow output path to transitive dependencies
- Don't copy project deps to output in publish or post compile
2015-11-01 05:40:19 -08:00
David Fowler
96dfcfa563 Make project dependencies work for dotnet run
- Copy project references to the output folder
2015-11-01 04:06:12 -08:00
David Fowler
da2925e920 Fix the name stripping logic 2015-11-01 03:39:56 -08:00
David Fowler
eaf05ea596 Fix namespace 2015-11-01 02:46:05 -08:00
David Fowler
81f4ebe412 Support mono for dotnet run 2015-11-01 02:30:34 -08:00
David Fowler
8a32f5ece9 Copy dependencies on compile for desktop targets 2015-11-01 02:04:26 -08:00
David Fowler
30f8e6fa4c Remove the message that reports compilation failed 2015-11-01 01:44:53 -07:00
David Fowler
d430ad35c4 Fixed bug resolving native search paths 2015-11-01 01:25:10 -07:00
David Fowler
05fae4d102 Fixed description of preserve-temporary 2015-10-31 23:49:41 -07:00
Andrew Stanton-Nurse
b7e6a0e6cd clean up copypasta 2015-10-31 22:07:41 -07:00
Andrew Stanton-Nurse
3ce7a84a04 dotnet-run command 2015-10-31 21:57:07 -07:00
Andrew Stanton-Nurse
fbedf48da2 fix windows build 2015-10-31 21:19:15 -07:00
Bryan Thornbury
67a17393f8 fix compilation error 2015-10-30 15:34:50 -07:00
Bryan Thornbury
82d538c43a fix compilation error 2015-10-30 15:20:14 -07:00
Bryan Thornbury
951e682070 remove constant 2015-10-30 15:17:43 -07:00
Bryan Thornbury
04e2212f45 clean up --native option 2015-10-30 15:13:53 -07:00
Bryan Thornbury
15cbb75e45 merge with master 2015-10-30 15:11:18 -07:00
Andrew Stanton-Nurse
e70a169b28 Add a shared runtime aware host
And use it in dotnet-compile
2015-10-30 15:03:29 -07:00
Bryan Thornbury
f8ebf66dfc catch clean failure 2015-10-30 14:56:10 -07:00
Bryan Thornbury
822f8100a9 clean things up 2015-10-30 14:48:09 -07:00
Bryan Thornbury
b86dbda57e --native compile option 2015-10-29 13:29:38 -07:00
Bryan Thornbury
4cb3b9569b Merge remote-tracking branch 'upstream/master' into compilenative 2015-10-29 12:04:02 -07:00
Bryan Thornbury
7fe32a93b1 --native first attempt 2015-10-29 12:03:01 -07:00
David Fowler
756080421d Use CoreConsole on *nix
- Changed publish to use CoreConsole instead of
CoreRun for *nix
- Locked pacakge versions for test projects
2015-10-29 02:23:09 -07:00
David Fowler
c83f58d566 Minor API cleanup
- Make ProjectContextBuilder a fluent API
- Rename ResolveRepositoryPath to ResolvePackagesPath
2015-10-29 01:35:23 -07:00
David Fowler
2a37430053 Updated the solution and project file 2015-10-29 00:21:35 -07:00
David Fowler
f98159b3bb Renamed ProjectModel project
- Microsoft.Extensions.ProjectModel -> Microsoft.DotNet.ProjectModel
2015-10-29 00:15:12 -07:00
David Fowler
0ff309d6d1 Skip exe step for desktop TFM publish 2015-10-28 17:19:10 -07:00
Andrew Stanton-Nurse
840b704bf5 pin versions 2015-10-28 15:55:43 -07:00
Andrew Stanton-Nurse
a715be1d59 switch to latest coreclr 2015-10-28 15:47:47 -07:00
Andrew Stanton-Nurse
1d76b2846c package up DNX in the tar.gz
includes a smoke test for verifying that the output can be used to build
also includes a checked-in CoreCLR in order to work around CoreCLR issue
2015-10-28 10:32:30 -07:00
David Fowler
94bafb17a3 Skip the packages folder in the default excludes 2015-10-28 02:59:44 -07:00
David Fowler
80beccdbdc Added support for relocating reference assemblies
- This enables building for mono by setting the DOTNET_REFERENCE_ASSEMBLIES_PATH env variable. We could add some smart defaults for mono later.
- Added a new diagnostic for reference assemblies when the framework itself isn't installed.
- Added new error codes for dotnet.
2015-10-28 02:21:00 -07:00
Andy Gocke
1564a48760 Merge pull request #102 from agocke/AddCompilerNameOption
Add a compilerName option to the project.json
2015-10-26 09:34:19 -07:00
Andy Gocke
953d934819 Add csc as default compilerName if one is not specified
Also remove csc from project.json files, since it is no longer
necessary.
2015-10-26 09:23:58 -07:00
Andy Gocke
72665a4f9f Remove compiler name autodetection
Also add compilerName: csc to every project.json to compensate.
2015-10-25 23:37:41 -07:00
David Fowler
8ea6607c92 Lock file parsing cleanup
- Handle Package vs package, NuGet puts Package in the lock file
- Handle null package lookups gracefully
2015-10-24 04:32:26 -07:00
David Fowler
3876d2e16a Changes to publish
- Return error for invalid runtime ids
- Change output to be rid specific
2015-10-24 03:59:39 -07:00
Andy Gocke
2ccecbf78e Add a compilerName option to the project.json
If compilerName is not specified in the project.json then
dotnet compile will attempt to detect a compiler based on
a hardcoded lookup table.
2015-10-23 15:21:49 -07:00
Bryan Thornbury
7a5354d4b5 pin versions 2015-10-22 15:21:54 -07:00
Bryan Thornbury
8a94b30100 Only build deb packages on mac, fix windows docker build 2015-10-22 15:12:49 -07:00
Bryan Thornbury
32916db70f pull down dependency to fix the build 2015-10-22 14:48:45 -07:00
David Fowler
8ca5740ce0 Change output for process exiting 2015-10-22 05:31:24 -07:00
David Fowler
18595e221e Make publish require and entrypoint 2015-10-22 04:34:01 -07:00
David Fowler
f8837f7717 Fix quoting of arguments to handle things with spaces in them 2015-10-22 03:32:32 -07:00
glennc
7339dbd5bf Force package versions down temporarily while we move to dotnet. 2015-10-21 14:02:47 -07:00
David Fowler
5ee8245b38 Fix issues with resolving reference assemblies
- Fixed global json lookup
2015-10-21 13:00:13 -07:00
David Fowler
20a4b43e4b Fixed duplicate diagnostics 2015-10-21 03:53:07 -07:00
David Fowler
5872aa0f0c Make all command execution synchronous
- This fixes a bunch of weird races I was seeing building
larger solutions.
2015-10-21 03:11:27 -07:00
David Fowler
c1e2d152e3 Remove mono bootstrapping logic 2015-10-21 01:18:14 -07:00
David Fowler
7191080caf Add a newline to the bash script for exec 2015-10-21 00:35:28 -07:00
David Fowler
62e586549d Clean up diagnostics output from compile
- Show a build summary
- Parse the msbuild format (the one that most compilers output) into a diagnostic message and then print that.
- Fixed formatting of LibraryRange in dependency diagnostics
2015-10-21 00:26:57 -07:00
David Fowler
3a26e88deb Fixed to colors 2015-10-20 15:36:59 -07:00
Andy Gocke
d97d307cdf Merge pull request #75 from agocke/DowngradeRuntime
Downgrade the runtime to -23413
2015-10-20 14:14:24 -07:00
Andy Gocke
1968207cbe Downgrade the runtime to -23413
It appears the compiler is crashing with an ExecutionEngineException
while trying to load the resource satellite assembly on -23419. Until
this is fixed we should downgrade to -23413.
2015-10-20 11:40:08 -07:00
David Fowler
6da43b205d Support publishing to .NET Framework
- Pick .exe or .dll based on emit entry point (true)
- Skip post publish fix up if the target application targets .NET Framework
2015-10-20 04:35:40 -07:00
David Fowler
d42b38d8ff Small fixes
- Change color of executing command
- Fix overwrite in publish
2015-10-20 03:07:21 -07:00
David Fowler
063eb45f8b Moved the reporter to shared code 2015-10-20 02:42:29 -07:00
David Fowler
086207ebcc Fix up diagnostics
- Show all diagnostics and the relevant location in project.json
even for transitive dependencies
- Removed LibraryRange from LibraryDescription and added a list instead
- Show stack traces in debug mode
- Fixed LibraryType.GetHashCode()
2015-10-20 01:44:00 -07:00
John Luo
0606e26221 Adding content copying to publish #51 2015-10-19 14:08:52 -07:00
David Fowler
f24aeae6b2 Removed unused variables 2015-10-18 21:34:16 -07:00
David Fowler
0c5464fa8c Added time for command execution 2015-10-18 21:24:26 -07:00
David Fowler
fc64db1f73 Support resx file embedding
- Added resgen tool and takes .resx and makes .resources
- Write .resources and .rsp to obj folder
2015-10-18 21:07:48 -07:00