shared-project

Visual Studio 2015 - Shared Projects Reference Tab Missing on Web Project

两盒软妹~` 提交于 2019-12-03 06:49:55
问题 I upgraded to Visual Studio 2015 from our MSDN subscription because I was pretty excited to read about Shared Projects... No more managing 21382 nuget packages in our dependencies when all we want to do is reuse code. So I built a test shared project with some code in it. Then I add a new empty web application on .Net 4.6 to the project. Now I expected to go to references and see a "Shared Projects" tab on the references window, but I do not see one. Now I can add a class library to the same

Visual Studio 2015 - Shared Projects Reference Tab Missing on Web Project

对着背影说爱祢 提交于 2019-12-02 21:19:23
I upgraded to Visual Studio 2015 from our MSDN subscription because I was pretty excited to read about Shared Projects... No more managing 21382 nuget packages in our dependencies when all we want to do is reuse code. So I built a test shared project with some code in it. Then I add a new empty web application on .Net 4.6 to the project. Now I expected to go to references and see a "Shared Projects" tab on the references window, but I do not see one. Now I can add a class library to the same solution and I see the tab and can add the shared reference. However I cannot add the shared project to

Referencing shared project in several projects of solution

六月ゝ 毕业季﹏ 提交于 2019-12-01 17:52:41
I am trying to fix warning Warning CS0436: The type 'Class1' in '...\SharedProject1\SharedProject1\Class1.cs' conflicts with the imported type 'Class1' in 'ClassLibrary1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in '...\SharedProject1\SharedProject1\Class1.cs'. WpfApplication1 ...\SharedProject1\WpfApplication1\MainWindow.xaml.cs Repro: create solution with 3 projects: SharedProject1 (add new class to it) namespace SharedProject1 { public class Class1() { } } ClassLibrary1 namespace ClassLibrary1 { public class Class1 { } } WpfApplication1 (add this to

Referencing shared project in several projects of solution

泄露秘密 提交于 2019-12-01 17:11:49
问题 I am trying to fix warning Warning CS0436: The type 'Class1' in '...\SharedProject1\SharedProject1\Class1.cs' conflicts with the imported type 'Class1' in 'ClassLibrary1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in '...\SharedProject1\SharedProject1\Class1.cs'. WpfApplication1 ...\SharedProject1\WpfApplication1\MainWindow.xaml.cs Repro: create solution with 3 projects: SharedProject1 (add new class to it) namespace SharedProject1 { public class Class1() {

Shared project with resource dictionary (xaml)

帅比萌擦擦* 提交于 2019-12-01 06:26:56
I am looking for a way to share ResourceDictionary between projects. Adding new item to shared project doesn't offer resource dictionary. It can be created in other (main) project and dragged. But then I can't change its build options to Page : The idea is to load resource dictionary like this var dictionary = new ResourceDictionary(); dictionary.Source = new Uri("/WpfApplication91;component/Dictionary2.xaml", UriKind.Relative); This is obviously fails currently with An exception of type 'System.IO.IOException' occurred in PresentationFramework.dll but was not handled in user code Additional

Xamarin Shared Library and PCL

為{幸葍}努か 提交于 2019-11-28 06:22:53
What is the exact difference between xamarin shared project and portable class library? When to use shared library and when to use portable class library? Is this possible to write native functionality in shared projects like showing alert,accessing camera and use it for both android and iOS? Can anyone please explain me. In shared projects each code file will be compiled for each destination (Android, iOS, Windows Phone etc). You are able to include platform specific code by using #if compiler directives. When you want to access the camera you need to write the access code inside an #if block

Xamarin Shared Library and PCL

人盡茶涼 提交于 2019-11-27 05:39:44
问题 What is the exact difference between xamarin shared project and portable class library? When to use shared library and when to use portable class library? Is this possible to write native functionality in shared projects like showing alert,accessing camera and use it for both android and iOS? Can anyone please explain me. 回答1: In shared projects each code file will be compiled for each destination (Android, iOS, Windows Phone etc). You are able to include platform specific code by using #if