Posted
over 8 years
ago
by
enorl76
Of note to @dot_NET_Junkie, there's a System.Common.Logging open source project designed to address this. I'd like the Framework guys to actually begin to pull THESE types of frameworks into the core frameworks, so that EVERYBODY is able to reference the INTERFACES and not actual implementations (of Logging/Dependency injectors/etc)
|
Posted
over 8 years
ago
by
enorl76
there's a System.Common.Logging open source project designed to address this. I'd like the Framework guys to actually begin to pull THESE types of frameworks into the core frameworks, so that EVERYBODY is able to reference the INTERFACES and not actual implementations (of Logging/Dependency injectors/etc)
|
Posted
over 8 years
ago
by
enorl76
there's a System.Common.Logging open source project designed to address this. I'd like the Framework guys to actually begin to pull THESE types of frameworks into the core frameworks, so that EVERYBODY is able to reference the INTERFACES and not actual implementations (of Logging/Dependency injectors/etc)
|
Posted
over 8 years
ago
by
pekspro
I have a problem that is very easy to replicate:* Create a Universal Windows app (for Windows 10).* In the package manifest, change default language to sv (Swedish, I assume other languages will work to).* Add a reference to
... [More]
Microsoft.Practices.ServiceLocation.* Create App packages to be uploaded to the Windows Store.When the app is uploaded to the store, the store thinks that the app supports English. This is because of the Resx-file in the ServiceLocation project.My problem is that my app is a pure Swedish project and I can’t support English for various reasons (it doesn’t make sense in my case). [Less]
|
Posted
over 8 years
ago
by
pekspro
I have a problem that is very easy to replicate:* Create a Universal Windows app (for Windows 10).* In the package manifest, change default language to sv (Swedish, I assume other languages will work to).* Add a reference to
... [More]
Microsoft.Practices.ServiceLocation.* Create App packages to be uploaded to the Windows Store.When the app is uploaded to the store, the store thinks that the app supports English. This is because of the Resx-file in the ServiceLocation project.My problem is that my app is a pure Swedish project and I can’t support English for various reasons (it doesn’t make sense in my case). [Less]
|
Posted
over 8 years
ago
by
pekspro
Ups... Posted in the wrong forum :-( Reposted as an issue:
https://commonservicelocator.codeplex.com/workitem/16060
|
Posted
over 8 years
ago
by
pekspro
Ups... Posted in the wrong forum :-( Reposted as an issue:
https://commonservicelocator.codeplex.com/workitem/16060
|
Posted
over 8 years
ago
by
MichaelDBang
Just curious if this project has any plans of recompiling itself so that it is compatible with Core .NET5?
|
Posted
over 8 years
ago
by
MichaelDBang
Just curious if this project has any plans of recompiling itself so that it is compatible with Core .NET5?
|
Posted
almost 9 years
ago
by
bzuillsmith
It's hard to know if this is a Visual Studio bug or a CommonServiceLocator bug but I decided to post here first.I'm having an issue where if I call ```ServiceLocator.Current.GetInstance(type)``` anywhere in my project, it causes UserControls
... [More]
throughout my project to stop instantiating within other controls at design-time in Visual Studio (tried 2013 and 2015). These controls work fine at run-time however. The line of code doesn't even have to be connected to any other code in anyway. If it's anywhere in the project, it causes problems. It does not happen with other function calls such as ```ServiceLocator.Current.GetInstance()```It is reproducible by creating a simple WpfApplication with the following 3 classes. The first build will succeed, and the designer will show fine. If you rebuild, however, it throws the error and the designer stops instantiating the UserControls within other controls. Because of this behavior, it seems like a Visual Studio bug, but I'm not sure.When uncommented, the ```#GetInstance(Type type)``` function of ServiceLocator causes an Error in the error list ```Cannot locate resource 'controls/test.xaml``` and the designer shows an error ```Cannot create an instance of "Test"``` where the Test UserControl should be. When commented, there are no errors.Test xaml class.``` xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d"> ```MyView xaml class. (uses Test)``` xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mycontrols="clr-namespace:XamlTest.Controls" mc:Ignorable="d"> ```A class unrelated to the UserControls that uses ServiceLocator.Current.GetInstance(type);.using Microsoft.Practices.ServiceLocation;```namespace XamlTest.SomeClasses{ class SomeClass { public void SomeFunction() { // Causes Test xaml class to not instantiate at design time within MyView. // Does not matter what parameters you give the function. // Notice this class isn't even associated with any other class, // and is never called, but it still causes problems. ServiceLocator.Current.GetInstance(null); } }}```You can also find a ready-made example project of this issue on github at [https://github.com/bzuillsmith/xamltest/tree/master/XamlTest](https://github.com/bzuillsmith/xamltest/tree/master/XamlTest) [Less]
|