Comments (4)
This seems true of both the nuget build from https://pkgs.dev.azure.com/ms/BuildXL/_packaging/BuildXL/nuget/v3/index.json and from a locally deployed build at C:\Users\indy\Telltale\BuildXL\Out\Bin\debug\win-x64
from buildxl.
It seems that we need to re-work some of our examples.
Indeed, to use functionalities in the SDK, one needs to include them in the resolver (specified in config.dsc
). In this way DScript can find where they are located.
We typically include everything from the %BUILDXL_BIN_DIRECTORY%
, in either of these two ways:
resolvers: [
{
kind: "DScript",
modules: [
...globR(d`${Environment.getPathValue("BUILDXL_BIN_DIRECTORY")}/Sdk`, "package.config.dsc"),
...globR(d`${Environment.getPathValue("BUILDXL_BIN_DIRECTORY")}/Sdk`, "module.config.dsc"),
...globR(d`${Environment.getPathValue("BUILDXL_BIN_DIRECTORY")}/Sdk`, "module.config.bm"),
]
},
],
or
resolvers: [
{
kind: "DScript",
root: d`${Environment.getPathValue("BUILDXL_BIN_DIRECTORY")}/Sdk`,
},
]
You can also take a look into how we set up/structure our integration tests here. In the tests we build a number of modules.
from buildxl.
But it still seems that many SDK functionalities aren't included in the build, such as jsonSDK.dsc?
from buildxl.
Only the very basic SDKs are bundled together with BuildXL binaries. Those are the SDKs you see under <bxl-install-dir>/Sdk
.
All SDKs (bundled with bxl binaries or not) that are needed have to be explicitly referenced from the main config.dsc file under 'resolvers', as the example Iman was showing above. A module.config.dsc (or package.config.dsc, the old name for module files) is what declares a particular module. If a module file exposes a module 'Foo' then referencing this module file in the main config will enable expressions like ' import * as Foo from "Foo"
' in a particular spec. The 'No resolver was found that owns...' error means that you are trying to import a module that is unknown to any resolver.
I believe at the moment we are not publicly publishing a NuGet with the additional SDKs. This is something we can consider doing. But if you clone BuildXL repo, you'll find all public SDKs here, you can just point your main config file resolvers to the module files you are interested about
from buildxl.
Related Issues (20)
- FileContentTable does not work optimally when file belongs to more than one FileContentTable HOT 14
- Unclear how to build BuildXL for Linux HOT 2
- Build scripts incorrectly report that Visual Studio 2017 build tools are required HOT 1
- BuildXL will sends requests for additional files back to the originating machine? HOT 1
- When Ninja Added BuildXL option, error CX0000005 was reported when using VS2022 to test the project. HOT 1
- Build process exited with ArgumentTransformationMetadataException HOT 2
- Distributed Builds using BuildXL HOT 2
- Easy: Solution-> BuildXL file
- Update documentation needed for Visual studio 2022 HOT 1
- Cannot run minimal build HOT 2
- Cannot build Visual Studio plugin HOT 2
- Setting up a distributed build with the public version HOT 3
- buildXL fail on Assertion failed (runningPips == 0): There are still pips at running HOT 2
- Getting error while trying to build the Hello World MsBuild Example HOT 2
- Will BuildXL work with Visual Studio 2015 HOT 1
- More document about download packages HOT 1
- DetoursServices: PathFromObjectAttributesViaId causes offline files to be recalled HOT 4
- error DX11233: Hexadecimal digit expected HOT 1
- BuildXL Win64 DX0059: RunInSubst.exe Cannot Be Found HOT 7
- Building multiple msbuild projects which inherit the same projects HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from buildxl.