Giter VIP home page Giter VIP logo

Comments (9)

chunyu3 avatar chunyu3 commented on September 27, 2024

Hello @m-redding I tried to generate the SDK from the typespec (same config as tsp-location.yaml in your PR), the SDK generated with all the needed model files (e.g. ContentType.cs).
Would you please re-try ?

from autorest.csharp.

m-redding avatar m-redding commented on September 27, 2024

@chunyu3 I just retried but still am not seeing ContentType, is there anything I should be doing besides just running dotnet build /t:GenerateCode?

from autorest.csharp.

m-redding avatar m-redding commented on September 27, 2024

And if the "Verify generated code" pipeline is passing does that mean it's generating as expected? - https://dev.azure.com/azure-sdk/public/_build/results?buildId=3941692&view=logs&j=b70e5e73-bbb6-5567-0939-8415943fadb9&t=2102385d-609d-5572-64d2-932661c7902f

from autorest.csharp.

chunyu3 avatar chunyu3 commented on September 27, 2024

retried but still am not seeing ContentType, is there anything I should be doing besides just running dotnet

Maybe you need to check if use the right typespec file: check tsp-location.yaml to see if it use the right commit, and you can use /p:SaveInputs=true to save the typespec files and check if it is correct, and check the tspConfig.yaml.

dotnet build /t:GenerateCode /p:SaveInputs=true

from autorest.csharp.

m-redding avatar m-redding commented on September 27, 2024

I confirmed that it is the correct TypeSpec file and commit

from autorest.csharp.

m-redding avatar m-redding commented on September 27, 2024

Any update on this by chance? I don't think I'm generating incorrectly, and I still don't see ContentType when generating. I'm having some trouble aligning the behavior with other languages because I'm the only one without it at the moment.

from autorest.csharp.

chunyu3 avatar chunyu3 commented on September 27, 2024

Hello @m-redding In the SDK, we use the Azure.Core.ContentType as the content-type header type. I will continue investigating on this and reply you whether it is by design or not. Thanks

from autorest.csharp.

chunyu3 avatar chunyu3 commented on September 27, 2024

Hello @m-redding in .net SDK, we will not generate ContentType class for content-type header, we will use the Azure.Core.ContentType directly. It is by design. Thanks.

from autorest.csharp.

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.