Comments (7)
Thanks for the report. This looks similar to dotnet/project-system#7028 (/cc @dansiegel)
from uno.
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.
@jeromelaban, @dansiegel
A couple more details:
- Same issue when adding a new page (without copy-paste)
- If I am not mistaken @ArchieCoder is referring to this article
https://platform.uno/docs/articles/external/uno.extensions/doc/Learn/Navigation/HowTo-NavigateBetweenPages.html#1-navigating-to-a-new-page where it is still mentioning "(shared) project". Documentation would need to be updated as well on that aspect.
from uno.
@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.
@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
from uno.
Adding a new UserControl via Add New Item also create noises in csproj
from uno.
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)
- [skia][macOS] TextBox/RadioButtons/ComboBox/CheckBox/Button/InfoBar texts are not properly aligned vertically HOT 8
- Cannot generate WinUI package "The target "_GenerateAppxPackage" does not exist in the project." HOT 6
- [RelativeSource] Inconsistency involving Self and TemplatedParent between Uno and Windows HOT 2
- Add a file open picker & edit manual test
- tews
- test
- Programmatic changes to `TextBox.Text` don't flow to ViewModel via TwoWay binding
- [Description] in Uno samples App HOT 1
- [Uno.sdk] The app doesnt build when you add some packages
- [skia][wpf] The full screen window is unstable HOT 2
- `Canvas_DependentAnimation` is not showing an animated circle HOT 1
- Can't add a new Uno application project to an existing solution in VS2022 HOT 2
- `TimePicker` invisible selection text
- NuGet package override does not work for `net8.0-ios` HOT 2
- `ItemsRepeater` gets corrupted on scrolling when some items are invisible HOT 1
- No error reported on invalid `xmlns`
- `AcrylicBrush`es sometimes don't account for translation
- [skia][macos] A default `exec` icon is shown in the dock bar when no icon is provided HOT 2
- Add an analyzer to ensure that `InitializeComponent` is invoked in the code-behind of a page
- TabView's tab selection does not work properly in Desktop
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uno.