Click here to Skip to main content
15,914,397 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Chrome updates Pin
ZurdoDev24-Jan-19 5:44
professionalZurdoDev24-Jan-19 5:44 
GeneralRe: Chrome updates Pin
dandy7224-Jan-19 5:33
dandy7224-Jan-19 5:33 
GeneralRe: Chrome updates Pin
MarkTJohnson24-Jan-19 5:57
professionalMarkTJohnson24-Jan-19 5:57 
GeneralRe: Chrome updates Pin
#realJSOP24-Jan-19 6:32
professional#realJSOP24-Jan-19 6:32 
GeneralRe: Chrome updates Pin
MarkTJohnson24-Jan-19 8:17
professionalMarkTJohnson24-Jan-19 8:17 
GeneralRe: Chrome updates Pin
#realJSOP24-Jan-19 8:30
professional#realJSOP24-Jan-19 8:30 
GeneralRe: Chrome updates Pin
RickZeeland24-Jan-19 6:31
mveRickZeeland24-Jan-19 6:31 
GeneralWell, That's Annoying Pin
#realJSOP23-Jan-19 23:42
professional#realJSOP23-Jan-19 23:42 
In VS2017 you can add files using "add as link", so the physical file only exists in one place, and any change to that file is reflected in all projects that use it. Theoretically.

In practice, it doesn't work at all on non-compilable files - you know - like in a web project. I tried using the feature with shared cshtml files, and linked files aren't found. at all.

What the actual f*ck Microsoft?

EDIT =================================================

Well, it seems you have to view the file's properties, and change Build Action to "Content", and Copy to Output Dir to "Always Copy". Manually. Like you're back in the the 80's.

EDIT AGAIN ===========================================

A preferrable approach - create a RazorPages class library and put all your common code in that (css, js, partial views, etc).
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013


modified 24-Jan-19 6:39am.

GeneralRe: Well, That's Annoying Pin
RickZeeland23-Jan-19 23:49
mveRickZeeland23-Jan-19 23:49 
GeneralRe: Well, That's Annoying Pin
Mark_Wallace24-Jan-19 0:11
Mark_Wallace24-Jan-19 0:11 
GeneralRe: Well, That's Annoying Pin
PIEBALDconsult24-Jan-19 2:16
mvePIEBALDconsult24-Jan-19 2:16 
GeneralCCC WSO OTD 2019-01-24 Pin
DerekT-P23-Jan-19 22:07
professionalDerekT-P23-Jan-19 22:07 
GeneralRe: CCC WSO OTD 2019-01-24 Pin
pkfox23-Jan-19 22:18
professionalpkfox23-Jan-19 22:18 
GeneralRe: CCC WSO OTD 2019-01-24 Pin
DerekT-P23-Jan-19 22:19
professionalDerekT-P23-Jan-19 22:19 
GeneralRe: CCC WSO OTD 2019-01-24 Pin
pkfox23-Jan-19 22:21
professionalpkfox23-Jan-19 22:21 
GeneralRe: CCC WSO OTD 2019-01-24 Pin
DerekT-P23-Jan-19 22:25
professionalDerekT-P23-Jan-19 22:25 
Generalvideo editor Pin
V.23-Jan-19 22:00
professionalV.23-Jan-19 22:00 
GeneralRe: video editor Pin
OriginalGriff23-Jan-19 22:12
mveOriginalGriff23-Jan-19 22:12 
GeneralRe: video editor Pin
RickZeeland23-Jan-19 22:31
mveRickZeeland23-Jan-19 22:31 
GeneralRe: video editor Pin
Mark_Wallace24-Jan-19 0:14
Mark_Wallace24-Jan-19 0:14 
GeneralRe: video editor Pin
OriginalGriff24-Jan-19 0:40
mveOriginalGriff24-Jan-19 0:40 
GeneralRe: video editor Pin
Mark_Wallace24-Jan-19 10:38
Mark_Wallace24-Jan-19 10:38 
GeneralRe: video editor Pin
OriginalGriff24-Jan-19 11:19
mveOriginalGriff24-Jan-19 11:19 
GeneralRe: video editor Pin
Joan M24-Jan-19 2:20
professionalJoan M24-Jan-19 2:20 
GeneralRe: video editor Pin
Jacquers24-Jan-19 4:01
Jacquers24-Jan-19 4:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.