Code Monkey home page Code Monkey logo

Comments (8)

pavel-b-novikov avatar pavel-b-novikov commented on August 25, 2024

I presume that this error is related to VS2015 project format (.xproj). Previous version of MSBuild's syntax (according to MSBuild docs) is

<ItemGroup Condition="'String A' == 'String B'">
    <Item1>... </Item1>
    <Item2>... </Item2>
</ItemGroup>

So it has to consume any children of an ItemGroup. So therefore I presume that problem is not in RT itself, but in Visual Studio and MSBuild.

Could you contact me directly, because you are doing very interesting option of RT integration? Skype: nsu_the_cjay.

from reinforced.typings.

MV10 avatar MV10 commented on August 25, 2024

I don't use Skype, sorry. I didn't consider that my multi-targeted DLL doesn't contain any RT attributes (since the DLL targets both .NET35 and Core 1.0, I can't easily add RT to the project) so I can't really use the Assembly approach even if this XML warning hadn't come up.

(Also it appears that RT isn't compatible with .NET35 even in a stand-alone setup -- meaning, not a multi-targeted solution. I tried creating just a .NET35 console app and the RT nuget package won't load.)

I was able to do the static class configuration and get the desired output.

However I'm willing to help if you need anything else relating to this project configuration. I'd also be happy to test any Core changes you might make, I'd prefer to use the attribute approach and output my TS files from the same project that produces the data definition DLL.

from reinforced.typings.

pavel-b-novikov avatar pavel-b-novikov commented on August 25, 2024

Well, the problem is that it is not so easy to make .NETCore version of RT. Mainly because the main feature of RT is integration within project building process. I still couldnt find extension point for embedding RT calls to .xproj build script. If you have information about how to do that - please tell me :) Will appreciate any help.

from reinforced.typings.

MV10 avatar MV10 commented on August 25, 2024

I would think you need the "tools" and "scripts" section of the project.json file.

https://docs.microsoft.com/en-us/dotnet/articles/core/tools/project-json

I hate to say it, but MS has announced that project.json is going away in the next VStudio, they're going back to MSBUILD for everything, so unfortunately this would be a short-lived fix. (VS2015 is version 14, they're dropping year-names, so the next one will, confusingly, be called VS15). I think JSON files are terrible for configuration, but that decision has stalled a lot of VS14 development/integration.

from reinforced.typings.

pavel-b-novikov avatar pavel-b-novikov commented on August 25, 2024

Am I right that you suggest just sit still and wait? :)
To be honest, personally I do love MSBuild and do not have any idei who could suggest .json-build configuration. Well, conf. serialization way does not matter of course, but it seems that they have significantly changed operations flow within this "brand-new" project.json.

from reinforced.typings.

MV10 avatar MV10 commented on August 25, 2024

Well, it might be an easy fix.

You almost certainly will have to make other changes to support Core though. Part of my project uses reflection very heavily but it only took me a few minutes to fix that. I didn't see much else in RT that looked like it would be impacted.

If it really is as simple as fixing reflection (same features are available, they just revised the API a little) and adding RT to the project.json, it may be worth updating it anyway. I know I'd appreciate it! :)

from reinforced.typings.

pavel-b-novikov avatar pavel-b-novikov commented on August 25, 2024

btw, I've just found year-old announce that project.json will not be supported in the future.
https://blogs.msdn.microsoft.com/dotnet/2016/05/23/changes-to-project-json/

So all the msbuild hacks made in RT will stay valid

from reinforced.typings.

pavel-b-novikov avatar pavel-b-novikov commented on August 25, 2024

Case closed
#48

from reinforced.typings.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.