Comments (5)
This should already work if you compile your app against their replacement libraries, but I haven't ever used Script#. Am I missing specific features you need in order to do this? It sounds like you want modified behavior in Visual Studio, and JSIL currently has no interaction with VS.
from jsil.
Sorry for my previous deleted entry. Used the wrong tab.
In every C# project you can disable the automatic referencing of mscorelib via Build->Advanced->"Do not reference mscorelib.dll". If you do that you get a lot errors, since the C# compiler needs some basic classes like object, string, int32 to work. No you could provide your own JSILCoreLib which provides a basic impl/proxying for that. If you do that you make sure that VS could only provide intellisens for classes which are existing not for something like AppDomain which can not exist in JS.
from jsil.
Is there a specific feature JSIL has implement for this issue?
I guess what is needed is to replace/extend JSIL.Bootstrap.js & proxies with a C# assembly that would replace mscorlib?
from jsil.
I've started hacking on a mscorlib replacement. It does not work yet, but if anyone is interested it can be found at https://github.com/markusjohnsson/JSIL/tree/jsil_corlib
At least you can build everything (only the Meta & Proxies assemblies reference JSIL.Corlib), but I've not got too far with actually running anything. My initial thought was to merge the Proxies, Meta and (parts of) JSIL.Bootstrap.js and requiring JSIL projects to link to JSIL.Corlib instead of mscorlib... however, there are some things I haven't really thought about yet: how to handle cases where we actually want to provide a proxy to a third party assembly that links to mscorlib, like Kevin is doing with XNA?
Please post any thoughts or comments, will probably hack some more on this during the weekend.
from jsil.
Meta needs to be a separate assembly because it contains attributes used by JSIL itself. It's possible to have those attributes be within the proxy library, I suppose, but that makes it a heavier dependency and means that JSIL can never actually reference the attribute types directly. Making it heavier is also bad since any native .NET app that uses the attributes would still have to ship that library in its native form.
from jsil.
Related Issues (20)
- DCE works incorrectly for derived interface implementation
- Content Not Being Generated XNA HOT 1
- Assembly.GetType is not working for generics.
- Unsigned comparisons work incorrect
- Type.FullName is not returning correct name for generic dictionary
- Async state machine incorrect translation HOT 6
- Calling External Library From C# HOT 2
- string.IndexOf(String value, StringComparison comparisonType) not available HOT 2
- Support netstandard assemblies
- ulong math is incorrect HOT 2
- Installing JSIL on Linux HOT 2
- Support pascalabc
- InvalidCastException when using Newtonsoft.Json.dll (10.0.1 .NET 4.0) HOT 1
- Delegate.Method fails when called in constructor. HOT 3
- C# 7.2 "in" keyword in interfaces
- DateTime Object does not implement public functions
- load file
- Attribute properties are missing HOT 1
- How to Convert a CSharp Project to JavaScript on a Mac? HOT 2
- where do I find the namespace and game?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsil.