Commit graph

242 commits

Author SHA1 Message Date
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