Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WinUI] C# Project Referencing a C# Library User Control failed with CS1061 and NETSDK1 errors #8499

Closed
XamlTest opened this issue May 23, 2023 · 2 comments
Labels
bug Something isn't working needs-author-feedback Asked author to supply more information. no-recent-activity team-Markup Issue for the Markup team

Comments

@XamlTest
Copy link

XamlTest commented May 23, 2023

Describe the bug

On Visual Studio 16.11.26, add a WinUI class library to WinUI desktop project, build failed with CS1061 and NETSDK1 errors.
The test case failed on 16.11, work as expected on Visual Studio 17.7 Preview 2.
Copy the bug from [16.11] [WinUI]C# Project Referencing a C# Library User Control failed with CS1061 and CS0103 errors

Steps to reproduce the bug

Environment:
VS Build: 16.11.26
OS: Windows 10

Repo: WinUIIssues.zip

Repro Steps:

  1. Create C# Blank App, Packaged (WinUI 3 in Desktop) project and rename to MyCSDesktopProject.
  2. Create C# Class Library(WinUI 3 in Desktop) project and rename to MyCsClassLibrary -> Add User Control -> Add some code.
  3. Focus on MyCSDesktopProject -> add existing project MyCsClassLibrary
  4. Click on MyCSDesktopProject, add reference MyCsClassLibrary.
  5. Build the solution.

Expected Result:
Build successfully without errors.

Actual Result:
Build failed with CS1061 and NETSDK1 errors.
image

Expected behavior

No response

Screenshots

No response

NuGet package version

None

Windows version

No response

Additional context

No response

@XamlTest XamlTest added the bug Something isn't working label May 23, 2023
@bpulliam bpulliam added the team-Markup Issue for the Markup team label Aug 9, 2023
@Scottj1s
Copy link
Member

The InitializeComponent error is a known spurious issue that can be remedied with a clean rebuild. Does that unblock your scenario?

@bpulliam bpulliam added the needs-author-feedback Asked author to supply more information. label Jan 23, 2024
Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-author-feedback Asked author to supply more information. no-recent-activity team-Markup Issue for the Markup team
Projects
None yet
Development

No branches or pull requests

3 participants