View Issue Details

IDProjectCategoryView StatusLast Update
0002463NoesisGUIC# SDKpublic2022-11-18 18:13
Reporterjsantos Assigned Tosfernandez  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.1.5 
Target Version3.1.6Fixed in Version3.1.6 
Summary0002463: Error Can't register embedded resources in C# SDK
DescriptionI have a project that builds and runs fine on 3.1.2. However, after updating the NuGet packages to 3.1.5, I am given this error:

[NOESIS/W] Can't register embedded resources for 'NoesisDotNetFrameworkTest', no common namespace in types and resources found
[NOESIS/E] Xaml not found 'App.xaml'
Exception thrown: 'System.InvalidOperationException' in Noesis.App.dll
An unhandled exception of type 'System.InvalidOperationException' occurred in Noesis.App.dll
Startup window not defined
TagsNo tags attached.
PlatformAny

Activities

jsantos

jsantos

2022-11-18 17:51

manager   ~0008168

Last edited: 2022-11-18 18:13

In 3.1.6 we have changed a bit the way Embedded resources are loaded. Note that this is our implementation in the App Framework and it can be changed to a different one by client code.

1. Assembly is now always mandatory (as in WPF)

Noesis.GUI.LoadComponent(this, "/Localization;component/MainWindow.xaml");

2. The URIs must be prepended with the RootNamespace. We recommend setting it to empty in your csproj

<RootNamespace></RootNamespace>

https://learn.microsoft.com/en-us/dotnet/api/microsoft.visualstudio.vcprojectengine.vcproject.rootnamespace?view=visualstudiosdk-2019

We have added better error messages to help with the migration.
All our examples have been updated.

Issue History

Date Modified Username Field Change
2022-11-18 17:45 jsantos New Issue
2022-11-18 17:45 jsantos Assigned To => sfernandez
2022-11-18 17:45 jsantos Status new => assigned
2022-11-18 17:45 jsantos Status assigned => resolved
2022-11-18 17:45 jsantos Resolution open => fixed
2022-11-18 17:45 jsantos Fixed in Version => 3.1.6
2022-11-18 17:51 jsantos Note Added: 0008168
2022-11-18 17:51 jsantos Note Edited: 0008168
2022-11-18 17:54 jsantos Target Version => 3.1.6
2022-11-18 18:12 jsantos Note Edited: 0008168
2022-11-18 18:13 jsantos Note Edited: 0008168