You can “link” a code file between two projects. Right click your project, choose Add
-> Existing item
, and then click the down arrow next to the Add
button:
In my experience linking is simpler than creating a library. Linked code results in a single executable with a single version.
More Related Contents:
- Why did a network-related or instance-specific error occur while establishing a connection to SQL Server?
- Nuget connection attempt failed “Unable to load the service index for source”
- Could not load file or assembly Microsoft.SqlServer.management.sdk.sfc version 11.0.0.0
- How exactly does the “Specific Version” property of an assembly reference work in Visual Studio?
- How do I run Visual Studio as an administrator by default?
- What is a “first chance exception”?
- How to select different app.config for several build configurations
- Targeting both 32bit and 64bit with Visual Studio in same solution/project
- What is the significance of ProjectTypeGuids tag in the visual studio project file
- Release generating .pdb files, why?
- Favorite Visual Studio keyboard shortcuts [closed]
- Can I set Option Explicit and Option Strict on a Project/Solution level?
- How do you enable “Enable .NET Framework source stepping”?
- Why is the Visual Studio 2015/2017/2019 Test Runner not discovering my xUnit v2 tests
- Remote machines cannot connect to Visual Studio web server
- Dependency graph of Visual Studio projects
- How to set .net Framework 4.5 version in IIS 7 application pool
- How to prevent Visual Studio from launching WcfSvcHost.exe while debugging?
- How to completely uninstall Visual Studio 2010?
- Can Visual Studio 2012 be installed side-by-side w/ Visual Studio 2010?
- How do I find the stack trace in Visual Studio?
- Open .net framework 4.5 project in VS 2022. Is there any workaround?
- Are there any better ways to copy a native dll to the bin folder?
- How to fix DNX/DNVM in Visual Studio 2015?
- Get the name of Enum value
- Developing .NET Compact Framework apps in Post-2008 Visual Studio?
- /LinkResource in Visual Studio 2010
- “Register for COM Interop” vs “Make assembly COM visible”
- How do I prevent Visual Studio from renaming my controls?
- Managing complex Web.Config files between deployment environments