401416f637
## Description SourceLink is needed to ensure that our NuGet packages have matching source information when symbols are resolved. So we have an `EnableSourceLink` property which tells some of our projects to add source link, and we enable that when doing CI/PR/official builds by setting the property to true when we call msbuild in our pipelines. This PR makes it so that instead of having to pass that property, the projects themselves automatically build with source link when they need to. ### Type of Change - New feature (non-breaking change which adds functionality) ### Why This makes it so that local builds of RNW are closer to the the same nuget restore behavior / packages.lock.json file as when they're built in pipelines. This is part is working toward resolving #12004 and this functionality was extracted from PR #13634. ### What Instead of requiring us to call msbuild with `/p:EnableSourceLink=true` for every solution (or relying on setting it in `ExperimentalFeatures.props`) we now detect when our library projects are being built within the repo (detecting the `src-win` folder which isn't present in the NPM publish) and enable source link then. ## Screenshots N/A ## Testing N/A ## Changelog Should this change be included in the release notes: _yes_ Automatically set EnableSourceLink for in-repo builds only |
||
---|---|---|
.. | ||
Assets | ||
Properties | ||
Microsoft.ReactNative.Managed.IntegrationTests.csproj | ||
Package.appxmanifest | ||
ReactNativeHostTests.cs | ||
ReactNativeHostTests.js | ||
ReactPackageProvider.cs | ||
TestBundle.targets | ||
TestEventService.cs | ||
TestNotificationService.cs | ||
TestReactNativeHostHolder.cs | ||
TurboModuleTests.cs | ||
TurboModuleTests.js | ||
UnitTestApp.xaml | ||
UnitTestApp.xaml.cs | ||
packages.lock.json |