GithubHelp home page GithubHelp logo

Comments (6)

lovettchris avatar lovettchris commented on July 3, 2024

It is not entirely a dotnet core solution, so you have to do this:

nuget  restore xmlnotepad.sln
echo namespace XmlNotepad { public partial class AppAnalytics { private const string ApiKey="%XMLNOTEPAD_ANALYTICSKEY%"; } } > src\model\ApiKey.cs
msbuild xmlnotepad.sln

I added this to the build instructions.

from xmlnotepad.

NSP-0123456 avatar NSP-0123456 commented on July 3, 2024

Working fine in debug, but still fails in release and just using build.cmd

from xmlnotepad.

lovettchris avatar lovettchris commented on July 3, 2024

Try loading C:\dev\DevPerso\XmlNotepad\src\XmlNotepad.sln in Visual Studio 2022 and select Release/Any CPU build configuration then select "Build/Rebuild" option. Rebuild should restore all missing packages.

from xmlnotepad.

NSP-0123456 avatar NSP-0123456 commented on July 3, 2024

It is exactly what is not working. even on your build script debug is OK release fails.

from xmlnotepad.

lovettchris avatar lovettchris commented on July 3, 2024

Hmmm, can check you can access https://www.nuget.org/packages/Newtonsoft.Json/13.0.3 ?

If so, please run git clean -dfx in the root of your XmlNotepad repo and nuget locals all -clear to force nuget to download the packages again, then turn on msbuild diagnostic verbosity:

image

this select the "Rebuild" option and send me the verbose build output? my electronic mail alias at microsoft is clovett.

from xmlnotepad.

lovettchris avatar lovettchris commented on July 3, 2024

Also if you run this:

nuget search Newtonsoft.json

Does it show

====================
Source: nuget.org
--------------------
> Newtonsoft.Json | 13.0.3 | Downloads: 4,627,283,248
  Json.NET is a popular high-performance JSON framework for .NET

? You might have a corporate environment that is limiting which packages you can use...

from xmlnotepad.

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.