Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Dec 04 23:56
    TFTomSun commented #1308
  • Dec 04 23:53
    TFTomSun commented #1308
  • Dec 04 15:03
    geoffreymcgill edited #259
  • Dec 04 15:03
    geoffreymcgill commented #1308
  • Dec 04 14:59
    TFTomSun commented #1308
  • Dec 04 11:00
    dtsudo edited #4094
  • Dec 04 10:58
    dtsudo opened #4094
  • Dec 03 12:42
    stgolem commented #4093
  • Dec 03 12:39
    stgolem opened #4093
  • Dec 03 12:01
    stgolem commented #2406
  • Dec 02 13:13
    ProductiveRage opened #4092
  • Dec 02 13:05
    yard commented #3322
  • Nov 21 15:31
    geoffreymcgill edited #4091
  • Nov 21 15:30
    geoffreymcgill edited #4091
  • Nov 21 15:30
    geoffreymcgill milestoned #4091
  • Nov 21 15:30
    geoffreymcgill labeled #4091
  • Nov 21 15:30
    geoffreymcgill assigned #4091
  • Nov 20 07:26
    colderlord opened #4091
  • Nov 13 23:50
    ChrML commented #4048
  • Nov 13 23:49
    ChrML commented #4048
Evan Tobin
@evantobin
The frameworks are always using the static Array.IndexOf method and not using the instance method
julniter
@julniter
Hi how do i export the items inside my type definition file?
Fabrício Zimmerer Murta
@fabriciomurta
Hello @julniter! You have a public project you would want supported by Bridge via retyped? Unfortunately we couldn't get to a point retyped could be used in the community by demand to include new projects. If your project is publicly hosted, you can create an issue in the retyped repo and request for support, providing information how to get the typescript definition file, so that your project is included in a future retyped build.
Bartolomeus-649
@Bartolomeus-649
Can you compile the .NET BCL as a TypeScript/JavaScript module, so you could use it just as a class library on the client side in all existing TypeScript/JavaScript sites?
Fabrício Zimmerer Murta
@fabriciomurta
BCL?
Bartolomeus-649
@Bartolomeus-649
Fabrício Zimmerer Murta
@fabriciomurta
You mean, build the whole .NET sources with Bridge? Like we do with a subset of .NET (https://github.com/bridgedotnet/Bridge/tree/master/Bridge/System )?
If I understand well, the problem about building everything is that some code is platform-specific, and most times we need some Bridge-specific attributes (like in https://github.com/bridgedotnet/Bridge/blob/master/Bridge/System/Action.cs)
Bartolomeus-649
@Bartolomeus-649
@fabriciomurta But is not the whole point of the bcl not to be platform dependant?
With each new release of .Net Standard, all of its functionality must be implemented on any platform who wants to support the new version.
And since it's supposed to be running just about everywhere, they cant depend on specific platform features.
So, by picking one of the first versions, there really should not be very much platform stuff at all.
Bartolomeus-649
@Bartolomeus-649
Here is 1.0:
Anton Kononov
@stgolem

So, by picking one of the first versions, there really should not be very much platform stuff at all.

This! It would be the greatest thing in Bridge.Net!
Now we have to deal with different projects and share only files with classes between server and web.
With that we could share whole projects.

Also this is the only way to create possibility of using nuget packages the right way.
And it even possible to do IL to JS compile for external packages with that api support.
Anton
@Redoxee_twitter
Hello
This is my first time using gitter so sorry if I missed a post mentioning my very issue.
I started making a library for a personal project and I wanted to test it using bridge.
I've seen on the forum that you can't use straight dll since it has to be compiled using the bridge libraries.
Is there a way to add a bridge profile option to a project so I can change the profile without maintaining two projects ?
I'm not good with Visual Studio so I don't know how to phrase my problem correctly.
Doc-Saintly
@Doc-Saintly
Is it possible to reference a .Net core library in a bridge.net app? I want to test sharing the same class definitions between my back end code and my front end code being compiled with bridge.net
Anton
@Redoxee_twitter
this looks like a better wording of my question :)
Doc-Saintly
@Doc-Saintly
I tried and got and error. After searching that error I found a post saying that you simply can't reference classes from projects that are not build in Bridge.net
So then I guess the question is if you can move your classes to your bridge.net project and reference from your main dot net library.
Anton
@Redoxee_twitter
I think it won't work either. from my understanding, in order to transpile, bridge is using a custom core lib.
This makes bridge project incompatible with core lib
I could be wrong though.
Samuel
@samuelGrahame
You can use linked files. That way those files/cs are in a shared project. Then your project you want the code. Add existing add as existing item as linked. It is very common to have 3 projects for server and client. The server has the core library as a reference. Then the client. Just make a folder for all the linked files. Then put all objects in the core Library. That way if you want to change the client. It is as simple as adding that reference with all your objects to a new project
also you can use references. It just want build if that reference has something that is not implemented/supported. For instance adding winforms.
Samuel
@samuelGrahame
Also with the issue of having to manually link all new files to that project. There is a way to auto link based off the folder and file type.
Doc-Saintly
@Doc-Saintly
@samuelGrahame how are the using statements managed for these files if they are included as is for both applications? Do you have a sample?
Anton
@Redoxee_twitter
@samuelGrahame Thank you very much for your response, a quick test on my end seems to fit exactly what I wanted to do !
eggsa
@eggersa
Hello. I was wondering if bridge is officially dead by now?
Geoffrey McGill
@geoffreymcgill
@eggersa Our goal is to release Bridge 17.10.0 in just a few days. So, not dead.
eggsa
@eggersa
@geoffreymcgill I am glad to hear that!
Looking forward to it then =).
Samuel
@samuelGrahame
@Doc-Saintly with regards to using statements or any bridge based code, I just wrap in #if "bridge" #endif - but I try to limit any code that is platform dependent in the files I share.
Fabrício Zimmerer Murta
@fabriciomurta
Just to let you all know, we've just released Bridge 17.10.0: https://bridge.net/download/
Gerard Smit
@GerardSmit
Hey @fabriciomurta, I have a question: I have a project in the new .csproj-format. In https://github.com/bridgedotnet/Bridge/blob/master/Compiler/TranslatorTests/TestProjects/32/test.csproj you showed an example on how to do this.
I made the following .csproj which compiles the DLL files to bin\Bridge so it doesn't conflict the .NET Standard project: https://hastebin.com/tinatupaqe.xml.
It compiles, however no .js-file is generated. I don't get any errors or the "Bridge started" in my build log.
Do you maybe know why and how I can trigger Bridge to compile?
Ah... Wait... The build props are in Bridge.Min. After adding Bridge.Min it works. My bad :sweat_smile:
Fabrício Zimmerer Murta
@fabriciomurta
Well, you definitely was missing it. :)
Angular-sa
@Angular-sa
Hi All,
How can we use Bridge.NET in Angular 7? I have some calculation files in c#. I don't want to repeat my codes in Angular(UI) side . I prefer to reuse my C# code. it seems Bridge.NET supports AngularJS not Angular 2+ . I was wondering if you could help me.
eggsa
@eggersa
Hi. Are there any plans on fixing bridgedotnet/Bridge#4002 ?
@Angular-sa You can can include the generated code files in your project and simply invoke them. Kinda like creating your own 3rd party library with bridge. Bridge also provides an option to output typescript definition files which in your case would probably make sense.
Gerard Smit
@GerardSmit
Thanks for makin Bridge, this was quite a fun project to make thanks to Bridge.
I'm making an XML to PDF generator in C#. However to make the template you had to recreate the PDF constantly, so I made a live preview in Bridge.NET:
https://i.imgur.com/TJxGUBV.png
And it works perfectly :tada:
Fabrício Zimmerer Murta
@fabriciomurta
Cool, nice to hear you enjoyed it, Gerard!
Geoffrey McGill
@geoffreymcgill
@GerardSmit Your project looks very interesting. Keep us updated with your progress.
Troy
@bbqchickenrobot
Hi all, had a question - can we use bridge.net on a mac w/ the JetBrains Rider IDE or VSCode?
Fabrício Zimmerer Murta
@fabriciomurta
On a mac with VSCode: yes. VS For Mac as well. Can't say about JetBrains.
Fabrício Zimmerer Murta
@fabriciomurta
We've just released Bridge 17.10.1, basically addressing #4082 (issue with meta file name) and #4083 (issue with gotos in iterators).
eggsa
@eggersa
Sounds great
eggsa
@eggersa
How can I disable constructor for anonymous types? When I write something like new { prop = "abc" }, bridge generates someting like new $asm.$AnonymousType$4(""); instead of just { prop: 'abc' }
eggsa
@eggersa
Found the solution