Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

How to use in environment variable in packages.config?

$
0
0

I have a class library project in C#

I want to set version of a nuget package by environment variable.

I've tried this:

<?xml version="1.0" encoding="utf-8"?><packages><package id="Package" version="%version%" targetFramework="net48" /></packages>

but I'm getting error

packages.config': Invalid package version for package id

How can I set the version by some variable?Thank you.


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>