Coder Social home page Coder Social logo

Comments (7)

jeromelaban avatar jeromelaban commented on June 6, 2024 1

Thanks for the report. This looks similar to dotnet/project-system#7028 (/cc @dansiegel)

from uno.

jeromelaban avatar jeromelaban commented on June 6, 2024 1

It feels like there's something incorrect in VS, let's continue tracking in https://developercommunity.visualstudio.com/t/ItemGroups-are-created-regardless-of-glo/10658677

from uno.

agneszitte avatar agneszitte commented on June 6, 2024

@jeromelaban, @dansiegel
A couple more details:

from uno.

jeromelaban avatar jeromelaban commented on June 6, 2024

@ArchieCoder I'm not reproducing the output you got when copying the files. Would you have more precise repro steps?

Note that Visual Studio is adding ItemGroups incorrectly for an uno app, and so does a default winui app or with a MAUI app when copying XAML files.

We'll likely need to open an issue VS community site to report it.

from uno.

ArchieCoder avatar ArchieCoder commented on June 6, 2024

@jeromelaban Video of my steps https://github.com/unoplatform/uno/assets/1608424/2011549b-d239-4a0c-bfed-93e0bc191e69

In words:

  • Create new project
  • Copy paste SecondPage.xaml
  • Rename SecondPage in xaml and 2 times in xaml.cs

UnoApp7.csproj.txt

from uno.

ArchieCoder avatar ArchieCoder commented on June 6, 2024

Adding a new UserControl via Add New Item also create noises in csproj

from uno.

jeromelaban avatar jeromelaban commented on June 6, 2024

The key comment is dotnet/aspnetcore#24790 (comment), where :

To avoid unexpected behavior, VS is trying to avoid including a file multiple times in both None/Content.

It looks like we should be avoiding including files in multiple item groups, but that seems counter inuitive for some scenarios, particularly UpToDateCheckInput.

from uno.

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.