Giter VIP home page Giter VIP logo

blog-examples's People

Contributors

andrewlock avatar dehghani-mehdi avatar demonslyr avatar taritsyn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blog-examples's Issues

Incrementality of this generator is under the question.

Sorry for disturbing you, I noticed about this problem about a week ago and I'm not sure I understand this correctly, but looks like this generator is not incremental at all.

Here I read that

 I think I know what tutorial you probably followed here, but I'm afraid it was just completely incorrect.
...
You should never have any compilations or symbols in any steps of your incremental pipelines, and especially in output steps.
Those objects are not equatable and not meant to be used this way.

IncrementalValueProvider<(Compilation, ImmutableArray<EnumDeclarationSyntax>)> compilationAndEnums

If I correct it would super cool to fix this place and update your tutorial. A lot of people follow that tutorial and obtain this error.

Again, I'm not sure I understand the things correctly. Sorry if I'm wrong.
Thanks!

Blazor Pre-render / .NET 6 Source Generators

Hello,

I've read your series about Blazor with source generators.
I'm creating a blog using Blazor WASM and markdown files as the backend for my articles.

I want to get all possibles routes (meaning all the paths to get my markdown files). So for now i'm generating a .json with a powershell script as a PostBuildEvent. Then during runtime i'm downloading this file and i can populate my navigation.

But is it possible to embed it in the code directly ?
I would create a service in a .cs that will have that list of paths and returns it. The interface of that service should be added to the DI and injected in my razor files to generate the paths at runtime.

Or is my only option to disable the new source generation of razor ?

sample with user view/page for creating/updating claims and roles

Hello thanks for this, can you update to .ne core 8.
Also we are often dealing so much with user membership can you please add a good self hosted and firebase authentication sample since these two offer free options.

Hello can you show example of such.

Allow user to create claims/roles in the UI, and apply to objects/entities from UI.
Currently the user creates an entity objects with some fields and wants to attach a claim.

How about in DotNet Core 2?

Thank you for this demo.
I used this codes but i get error on this line :
Image sourceImage = await this.LoadImageFromUrl(url);
That says : Cannot declare a variable of static type 'Image'
I am using DotNet Core 2.
I need to save one image on my host and resize that image by calling an address but not save other sizes on disk.
I need to load resized images from catch.
Please help i need it very urgent .

Error in WorkerService and AzureFunctions

I'm having the same problem, but my projects are of type WorkerService and AzureFunctions, as I don't have Asp.NetCore I won't be able to use IHttpContextAccessor, can you help me in this scenario?

Blog post about shared appsettings

Hi Andrew,

In this blogpost you're talking about sharing appsettings accross multiple projects.

.ConfigureAppConfiguration((hostingContext, config) =>
{
    var env = hostingContext.HostingEnvironment;

    var sharedFolder = Path.Combine(env.ContentRootPath, "..", "Shared");

    config
        .AddJsonFile(Path.Combine(sharedFolder, "SharedSettings.json"), optional: true) // When running using dotnet run
        .AddJsonFile("SharedSettings.json", optional: true) // When app is published
        .AddJsonFile("appsettings.json", optional: true)
        .AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true);

    config.AddEnvironmentVariables();
})

The behavior I observe when setting the Build action and Copy to Output directory properties of my SharedSettings.json file to Content and Copy if newer, respectively, is that dotnet run copies the SharedSettings.json to the build directory as expected. Therefore, it is not needed to specify a path (as seen below) to the relative location of SharedSettings.json.

.AddJsonFile(Path.Combine(sharedFolder, "SharedSettings.json"), optional: true) // When running using dotnet run

This will work for local development, as well post publish. Is this correct? Or am I missing something?

Thanks!

System.InvalidOperationException : Test data returned null

I'm trying the JsonFileDataAttribute, but I'm getting the error shown above when it attempts run run "JsonTests" below. If I put a breakpoint in the constructor for JsonFileDataAttribute I never hit it. Any ideas?

    [Theory]
    [JsonFileData("blah")]
    public void JsonTests(object test)
    {
        Console.WriteLine(JsonConvert.SerializeObject(test));
    }

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.