Git Product home page Git Product logo

Comments (9)

xiaoyuvax avatar xiaoyuvax commented on July 29, 2024 1

u may try my small tool bflatA(https://github.com/xiaoyuvax/bflata) which scans the .csproj for dependency and build .rsp building script for ur project.

from bflat.

Cubody avatar Cubody commented on July 29, 2024

It also ignores auto-generated GlobalUsing.cs

from bflat.

MichalStrehovsky avatar MichalStrehovsky commented on July 29, 2024

The library doesn't ship with .NET. it comes from nuget. You have to specify it for the same reason you'd have to specify e.g. newtonsoft.json.

from bflat.

Cubody avatar Cubody commented on July 29, 2024

I have it from Nuget

using System;
using System.IO;
using System.Security.Cryptography;
using System.Text;

var path = Console.ReadLine();
var decrypted = Encoding.Unicode.GetString(
    ProtectedData.Unprotect(
        File.ReadAllBytes(path),
        null,
        DataProtectionScope.LocalMachine));

var directory = Path.GetDirectoryName(path);

File.WriteAllText(Path.Combine(directory, "UserSettings.decrypted"), decrypted);

image

from bflat.

Cubody avatar Cubody commented on July 29, 2024

Oh, nvrm, I see. So I need to specify all libraries I have in a big project?

from bflat.

Cubody avatar Cubody commented on July 29, 2024

As I know dotnet generates cache of nuget libraries with path to it. Maybe it's possible to automate it?

from bflat.

MichalStrehovsky avatar MichalStrehovsky commented on July 29, 2024

bflat is just a compiler. You can orchestrate nuget (even downloads from nuget) with separate tools. For example, MSBuild, or even nuget.exe. bflat is not a build system, you have to bring your own build system. There are many to choose from (GNU Make, MSBuild, ninja, bazel, etc., or just use a shell script).

from bflat.

Cubody avatar Cubody commented on July 29, 2024

I see, thank you. What about auto generated files?

I know that this is not supported yet, maybe you can advise how I can specify the generated files myself, but with the addition of a recursive scan of the base files from the project. I would like not to specify the entire project.

from bflat.

Cubody avatar Cubody commented on July 29, 2024

I found how to do it ;d
And it works with System.Text.Json

<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>

from bflat.

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.