Quantcast
Channel: MSBuild forum
Viewing all 2763 articles
Browse latest View live

Why .pdb is generated in lowercase

$
0
0

I can't find why my pdb is generated in lowercase, even if the /Fd option is given with a mix of lowercase and uppercase letter.

Is that an options? How can I have the output to be $(IntDir)$(TargetName).pdb?

Using VS2013...

Thank you.



32 bit virsion of Msbuild / TlbImp crashing

$
0
0

Hi

I am trying to build a C# solution,but it's getting frozen(hanged),

From the event viewer I got this logs.

Faulting application name: MSBuildTaskHost.exe, version: 4.0.30319.18020, time stamp: 0x5062ae8c
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc0000005
Fault offset: 0xfd400000
Faulting process id: 0x17a4
Faulting application start time: 0x01d16878849012dc
Faulting application path: C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\MSBuildTaskHost.exe
Faulting module path: unknown
Report Id: c243c4fa-d46b-11e5-827e-b083fe51af4a
Faulting package full name: 
Faulting package-relative application ID: 

And

Faulting application name: TlbImp.exe, version: 3.5.30729.1, time stamp: 0x488ef6ba
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc0000005
Fault offset: 0xbafc0000
Faulting process id: 0xc4
Faulting application start time: 0x01d168787bd77385
Faulting application path: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\TlbImp.exe
Faulting module path: unknown
Report Id: b98b264d-d46b-11e5-827e-b083fe51af4a
Faulting package full name: 
Faulting package-relative application ID: 

Then I tried to build a simple program, I got this too..

Faulting application name: MSBuild.exe, version: 3.5.30729.7903, time stamp: 0x51ea31ff
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc0000005
Fault offset: 0x50920000
Faulting process id: 0xb64
Faulting application start time: 0x01d1688add4e6817
Faulting application path: C:\Windows\WinSxS\x86_msbuild_b03f5f7f11d50a3a_3.5.9600.16384_none_90a8c55125986212\MSBuild.exe
Faulting module path: unknown
Report Id: 1b09421c-d47e-11e5-827f-b083fe51af4a
Faulting package full name: 
Faulting package-relative application ID: 

I reinstalled the visual studio ultimate 2010 along with SP1, but still getting the same error. Please suggest what need to be done.

Thanks

Himadri


Help with Error Tracker.exe Microsoft.CppCommon.targets

$
0
0

Hello - I am trying to compile a project that has both Visual Fortran and C++ code.  I keep getting the following error:

error: Required file tracker.exe is missing  

referring to File Microsoft.CppCommon.targets Line 347 Column 5 

Which is a MSBUILD file that you are warned against  modifying.

The product information for what I am using is:

Microsoft Visual Studio Professional 2012  Version 11.0.50727.1 RTMREL
Microsoft .NET Framework Version 4.5.50938
Visual C++ 2012   04938-088-1041026-02607     Microsoft Visual C++ 2012
Intel(R) Visual Fortran     Package ID: w_fcompxe_2013_sp1.2.176

Intel(R) Visual Fortran Composer XE 2013 SP1 Update 2 Integration for Microsoft Visual Studio* 2012, 14.0.0086.11, Copyright 

I do have the tracker.exe in some a 'bin' directory that I have added to my PATH as well as added the path to the executables that points to the directory containing tracker.exe. At this point I am not sure if that 'bin' directory was one I copied from my old computer or was the result of one of the SDK's I have installed.

Any advice/insight would be greatly appreciated.

Thanks much

msbuild is not recognized as internal or external command

$
0
0

Hi

I was using the msbuild command in Visual Studio 2008 command prompt succesfuly, now stop working and I cannot find the reason.

when I run the command I get the message:  'msbuild' is not recognized as internal or external command, operable command or batch file.

I've checked in C:\Windows\Microsoft.NET\Framework\v2.0.50727 looking for MSBuild.exe and it is in there!

:(

When will Build Tools 2015 contain the same MSBuild version Visual Studio 2015 Update 1 contains?

$
0
0

I'm running into a COM bug that is present in the original Visual Studio 2015 MSBuild process, but disappeared with Update 1. The exception being returned is:

Property, indexer, or event 'IChannelData.AvailableRegions' is not supported by the language; try directly calling accessor method 'IChannelData.get_AvailableRegions()'

This exception disappeared with VS 2015 Update 1.

However when setting up build machines with Build Tools 2015, it contains the same compiler as VS 2015.

From "C:\Program Files (x86)\MSBuild\14.0\Bin

MSBuild is version 14.0.23107 with Build Tools 2015

MSBuild is version 14.0.24730.2 with Visual Studio 2015 Update 1. 

Now I know this is probably down in the compiler itself, but I am thinking the Build Tools 2015 should have an Update 1 including the same compiler and MSBuild as VS 2015 Update 1. 

If there's a workaround for this that doesn't involve deploying VS to all my build agents I would love to know what it is.

Thanks.

Rick Martin

mostito1

$
0
0
----------I4-----------
---SISPITA 43- dohvacanje atributa
<script>

        window.onload = ucitajXML;        

        var imeDatoteke = 'Zadatak43.xml';

        function ucitajXML() {
            xmlhr = new XMLHttpRequest();
            xmlhr.open('GET', imeDatoteke, true);
            xmlhr.onreadystatechange = onChange;
            xmlhr.send();

            lista = document.getElementsByTagName('select')[0];
            lista.onchange = ispis;

            gumbUredi = document.getElementById('btnUredi');
            gumbUredi.onclick = uredi;

            gumbObrisi = document.getElementById('btnObrisi');
            gumbObrisi.onclick = obrisi;
        }

        function onChange() {
            if (xmlhr.readyState == 4) {
                podaci();
            }

        }

        function podaci() {

            xmlDom = xmlhr.responseXML;
            cvorOsoba = xmlDom.getElementsByTagName('osoba');

            for (var i = 0; i < cvorOsoba.length; i++) {
                var ime = cvorOsoba[i].getElementsByTagName('ime')[0].firstChild.nodeValue;
                var prezime = cvorOsoba[i].getElementsByTagName('prezime')[0].firstChild.nodeValue;
                var kontakt = cvorOsoba[i].getElementsByTagName('kontakt')[0];
                var email = kontakt.attributes[2].value;

                var select = document.getElementsByTagName('select')[0];
                var punoIme = ime + ' ' + prezime;
                select.appendChild(dodajUselect(punoIme, email));
            }

        }//kraj podaci

        function dodajUselect(textItem, mail) {
            var option = document.createElement('option');
            var tekst = document.createTextNode(textItem);
            option.appendChild(tekst);
            option.setAttribute('value', mail);
            return option;
        }

        function ispis() {
            var index = lista.selectedIndex;

            document.getElementById('txtEmail').value = cvorOsoba[index].getElementsByTagName('kontakt')[0].attributes[2].value;

        }

        function uredi() {
            var index = lista.selectedIndex;

            cvorOsoba[index].getElementsByTagName('kontakt')[0].attributes[2].value = document.getElementById('txtEmail').value;            
            
        }

        function obrisi() {
            var index = lista.selectedIndex;

            if (index != -1) {
                xmlDom.documentElement.removeChild(cvorOsoba[index]);
                reset();
            }

        }

        function reset() {
            $('#txtEmail').val('');
            $('select').empty();
            podaci();
        }
</script>



TABLICA I SUMA
----Zad3---
window.onload = ucitajXML;
var aOcjene = new Array();

function ucitajXML() {
    xmlhttp = new XMLHttpRequest();
    xmlhttp.open("GET", "studenti.xml", false);
    xmlhttp.send();
    xmlDoc = xmlhttp.responseXML;
    ispisiPodatke();
}

function ispisiPodatke() {
    var brojStudenata = xmlDoc.documentElement.childNodes.length;
    var table = "<table>";
    table += "<th>ID</th><th>Ime</th><th>Prezime</th><th>Ocjena</th>"

    for (i = 0; i < brojStudenata; i++) {
        var trenutniCvor = xmlDoc.documentElement.childNodes[i];
        if (trenutniCvor.nodeType == 1 && trenutniCvor.nodeName == "student") {

            var ime = GetNodeValue(trenutniCvor, "ime");
            var prezime = GetNodeValue(trenutniCvor, "prezime");
            var ocjena = GetNodeValue(trenutniCvor, "ocjena");

            var studentID = trenutniCvor.attributes[0].nodeValue;
            aOcjene.push(ocjena);
            table += "<tr><td>" + studentID + "</td>" + "<td>" + ime + "</td>" + "<td>" + prezime + "</td>"+ "<td>" + ocjena + "</td></tr>";
        }
    }
    table += "</table>";
    table += "<br/>Prosjek ocjena: " + prosjekOcjena(aOcjene);

    //ispis tablice u placeholder
    document.getElementById("placeholder").innerHTML = table;
}

function GetNodeValue(parentNode, childNodeName) {
    for (var i = 0; i < parentNode.childNodes.length; i++) {
        if (parentNode.childNodes[i].nodeType == 1 && parentNode.childNodes[i].nodeName == childNodeName)
            return parentNode.childNodes[i].firstChild.nodeValue;
    }
}

function prosjekOcjena(ocjeneArray) {
    var zbroj = 0;
    for (i = 0; i < ocjeneArray.length; i++) {
        zbroj += parseInt(ocjeneArray[i]);
    }
    return (zbroj / ocjeneArray.length).toFixed(2);
}





-----VIDEO-------
/// <reference path="scripts/jquery-1.11.3.min.js" />

var xmlhr, xmlDom, cvorOsoba;

window.onload = function () {
    ucitajXML();
}


//uvijek isto
function ucitajXML() {
    xmlhr = new XMLHttpRequest();
    xmlhr.open("GET", "XMLFile.xml", true);
    xmlhr.onreadystatechange = function () {

        if (xmlhr.readyState == 4) {

            prikazPodataka();
        }
    }
    xmlhr.send();

    //napravio je listu globalnom varijablom
    lista = document.getElementsByTagName("select")[0];
    lista.onchange = ispis;

    $("#btnDodaj").click(dodajOsobu);
    $("#btnUredi").click(urediOsobu);
    $("#btnObrisi").click(obrisiOsobu);
}


//dohvaćanje podataka iz XML-a
function prikazPodataka() {

    xmlDom = xmlhr.responseXML;
    cvorOsoba = xmlDom.getElementsByTagName("osoba");

    for (var i = 0; i < cvorOsoba.length; i++) {
        var oib = cvorOsoba[i].attributes[0].value;

        var ime = cvorOsoba[i].getElementsByTagName("ime")[0].firstChild.nodeValue;

        var prezime = cvorOsoba[i].getElementsByTagName("prezime")[0].firstChild.nodeValue;

        var select = document.getElementsByTagName("select")[0];

        var imePrezime = ime + " " + prezime;

        //dodavanje opitona u select
        select.appendChild(ubaciSelect(imePrezime, oib));
    }
}

//dodavanje optiona u select
function ubaciSelect(ime, broj) {

    var option = document.createElement("option");

    var tekst = document.createTextNode(ime);
    option.setAttribute("value", broj);
    option.appendChild(tekst);

    return option;
}

//ispis iz selecta u kućice
function ispis() {

    //dohvacanje odabranog selecta
    var index = lista.selectedIndex;

    //povezivanje odabranog selecta i xml-a
    var ime = cvorOsoba[index].getElementsByTagName("ime")[0].firstChild.nodeValue;
    var prezime = cvorOsoba[index].getElementsByTagName("prezime")[0].firstChild.nodeValue;
    var oib = cvorOsoba[index].attributes[0].value;

    document.getElementById("txtIme").value = ime;
    document.getElementById("txtPrezime").value = prezime;
    document.getElementById("txtoib").value = oib;
}


//dodavanje u XML
function dodajOsobu() {

    var imeDodaj = $("#txtIme").val();
    var prezimeDOdaj = $("#txtPrezime").val();
    var oibDodaj = $("#txtoib").val();

    if (imeDodaj == "" || prezimeDOdaj == "" || oibDodaj == "") {
        alert("Sva polja obavezna.");
    }

    else {
        //stvaranje elemenata u XML-u
        var cvorOsoba = xmlDom.createElement("osoba");
        cvorOsoba.setAttribute("oib", oibDodaj);

        var cvorIme = xmlDom.createElement("ime");
        cvorIme.appendChild(xmlDom.createTextNode(imeDodaj));

        var cvorPrezime = xmlDom.createElement("prezime");
        cvorPrezime.appendChild(xmlDom.createTextNode(prezimeDOdaj));

        //appendanje
        cvorOsoba.appendChild(cvorIme);
        cvorOsoba.appendChild(cvorPrezime);

        xmlDom.documentElement.appendChild(cvorOsoba);

        reset(); 
    }
    
}

//promjena odabrane osobe
function urediOsobu() {

    var odabrano = document.getElementsByTagName("select")[0];
    var index = odabrano.selectedIndex;

    cvorOsoba[index].getElementsByTagName("ime")[0].firstChild.nodeValue = document.getElementById("txtIme").value;
    cvorOsoba[index].getElementsByTagName("prezime")[0].firstChild.nodeValue = document.getElementById("txtPrezime").value;
    cvorOsoba[index].attributes[0].value = document.getElementById("txtoib").value;

    reset();
}

//brisanje elemenata
function obrisiOsobu() {

    var index = lista.selectedIndex;

    if (index != -1) {
        xmlDom.documentElement.removeChild(cvorOsoba[index]);
        reset();
    }
}


function reset() {
    $("#txtIme, #txtPrezime, #txtoib").val("");
    $("#txtIme").focus();
    $("select").empty();

    prikazPodataka();
}

-------Zad 4.-------------
var ddlDrzava, txtGrad, btn, ul, xml, xmlRootElement;

window.onload = function () {
    //ide na radi svoje valijable
    InicijalizacijaVarijabli();
    UcitajXML("DrzaveiGradovi.xml");

    ddlDrzava.onchange = OnChange;
    btn.onclick = OnKlik;
}

//isto svugdje
function UcitajXML(putanja) {
    xml = new XMLHttpRequest();
    xml.open("GET", putanja, true);
    xml.onreadystatechange = function () {
        if (xml.readyState == 4) {
            xmlRootElement = xml.responseXML.documentElement;
            //ide na 1. 
            PrikaziPodatke();

            //varijabla sprema trenuto odabranu drzavu
            var IDDrzava = ddlDrzava.options[ddlDrzava.selectedIndex].value;

            //ide na 2.prikaz gradova trenutno odabrane drzave
            PrikaziGradoveDrzave(IDDrzava);
        }
    }
    xml.send();
}

// 1. dohvaca Imena Drzava i ID-e
function PrikaziPodatke() {
    var drzave = xmlRootElement.getElementsByTagName("Drzava");
    for (var i = 0; i < drzave.length; i++) {

        var IDDrzava = drzave[i].getElementsByTagName("IDDrzava")[0].firstChild.nodeValue;
        var Naziv = drzave[i].getElementsByTagName("Naziv")[0].firstChild.nodeValue;

        ddlDrzava.appendChild(GetDDLOption(Naziv, IDDrzava));
    }
}

//1.2. prima Ime i ID drzave i stavlja ih u select
function GetDDLOption(text, value) {
    var option = document.createElement("option");
    var txt = document.createTextNode(text);
    option.setAttribute("value", value);
    option.appendChild(txt);
    return option;
}

//promjena u selectu
function OnChange() {
    //varijabla sprema trenuto odabranu drzavu
    var IDDrzava = this.options[this.selectedIndex].value;
    //ide na 2.
    PrikaziGradoveDrzave(IDDrzava);
}

//2.prikaz gradova trenutno odabrane drzave
function PrikaziGradoveDrzave(IDDrzava) {
    ul.innerText = "";

    //ide na 3. dohvaca čvor drzave pod zadanim ID-em
    var drzava = GetDrzavaNode(IDDrzava);

    var gradoviDrzave = drzava.getElementsByTagName("Grad");

    //4.prolazi kroz sve gradove zadane države
    for (var j = 0; j < gradoviDrzave.length; j++) {
        //ide na 4.1 dodaje gradove u li
        DodajListItem(gradoviDrzave[j].getElementsByTagName("Naziv")[0].firstChild.nodeValue);
    }
}

//3. dohvaca čvor drzave pod zadanim ID-em
function GetDrzavaNode(IDDrzava) {
    var cvoroviIDDrzava = xmlRootElement.getElementsByTagName("IDDrzava");
    for (var i = 0; i < cvoroviIDDrzava.length; i++) {
        var idDrz = cvoroviIDDrzava[i].firstChild.nodeValue;
        if (idDrz == IDDrzava)            
            return cvoroviIDDrzava[i].parentNode;
    }
}

//4.1 dodaje gradove u li
function DodajListItem(tekst) {
    var li = document.createElement("li");
    var txt = document.createTextNode(tekst);
    li.appendChild(txt);
    ul.appendChild(li);
}

//5. gumb dodaj
function OnKlik() {
    //provjerava id odabrane drzave
    var IDDrzava = ddlDrzava.options[ddlDrzava.selectedIndex].value;

    //ide na 5.1  dodavanje grada drzavi
    DodajGradDrzavi(IDDrzava, txtGrad.value);

    //pratni mjesto za unos
    txtGrad.value = "";

    //2.prikaz gradova trenutno odabrane drzave
    PrikaziGradoveDrzave(IDDrzava);
}

//5.1  dodavanje grada drzavi
function DodajGradDrzavi(idDrzava, nazivGrada) {
    //upisivanje u "xml"
    var gradNode = xml.responseXML.createElement("Grad");
    var gradNodeText = xml.responseXML.createTextNode(nazivGrada);
    var nazivNode = xml.responseXML.createElement("Naziv");

    nazivNode.appendChild(gradNodeText);
    gradNode.appendChild(nazivNode);

    //ide na 3. dohvaca čvor drzave pod zadanim ID-em
    var drzavaNode = GetDrzavaNode(idDrzava);
    drzavaNode.appendChild(gradNode);
}

//radi svoje varijable
function InicijalizacijaVarijabli() {
    ddlDrzava = document.getElementById("ddlDrzava");
    txtGrad = document.getElementById("txtGrad");
    btn = document.getElementById("btn");
    ul = document.getElementsByTagName("ul")[0];
}


SHEMA
-----Zad1-----
XML:
<?xml version="1.0" encoding="utf-8"?>
<adresar xmlns="http://tempuri.org/Zadatak01.xsd">
<osoba>
    <ime>Andrea</ime>
    <prezime>Andrejević</prezime>
    <email>andrea.andrejevic@mail.com</email>
    <starost>36</starost>
  </osoba>
  <osoba>
    <ime>Marko</ime>
    <prezime>Marić</prezime>
    <email>marko@email.com</email>
    <starost>38</starost>
  </osoba>
</adresar>

XSD:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="Zadatak01"
    targetNamespace="http://tempuri.org/Zadatak01.xsd"
    elementFormDefault="qualified"
    xmlns="http://tempuri.org/Zadatak01.xsd"
    xmlns:mstns="http://tempuri.org/Zadatak01.xsd"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
  <xs:element name="adresar">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="osoba" type="tipOsoba" minOccurs="2" maxOccurs="unbounded" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>

  <xs:complexType name="tipOsoba">
    <xs:sequence>
      <xs:element name="ime" type="xs:string" />
      <xs:element name="prezime" type="xs:string" />
      <xs:element name="email" type="tipEmail" />
      <xs:element name="starost">
        <xs:simpleType>
          <xs:restriction base="xs:integer">
            <xs:minInclusive value="0" />
            <xs:maxExclusive value="120" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>

  <xs:simpleType name="tipEmail">
    <xs:restriction base="xs:string">
      <xs:pattern value="[0-9a-zA-Z.-]+@[0-9a-zA-Z.-]+\.(hr|com|org)"/>
    </xs:restriction>
  </xs:simpleType>
  
</xs:schema>


-----Zad2-----
XML:
<?xml version="1.0" encoding="utf-8"?>
<katalogAlbuma xmlns="http://tempuri.org/Zadatak02.xsd">
  <album grupa="U2" naslov="Pop">
    <pjesma>Miami</pjesma>
  </album>
  <album grupa="DepecheMode" naslov="Violator">
    <pjesma>Policy of Truth</pjesma>
    <pjesma>Personal Jesus</pjesma>
  </album>
  <album grupa="Pink Floyd" naslov="dark side of the moon">
    <pjesma>Time</pjesma>
    <pjesma>Money</pjesma>
    <pjesma>Eclipse</pjesma>
  </album>
</katalogAlbuma>

XSD:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="Zadatak02"
    targetNamespace="http://tempuri.org/Zadatak02.xsd"
    elementFormDefault="qualified"
    xmlns="http://tempuri.org/Zadatak02.xsd"
    xmlns:mstns="http://tempuri.org/Zadatak02.xsd"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
  <xs:element name="katalogAlbuma">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="album" type="tipAlbum" maxOccurs="unbounded"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>

  <xs:complexType name="tipAlbum">
    <xs:sequence>
      <xs:element name="pjesma" maxOccurs="20">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="20"/>
          </xs:restriction>          
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="grupa" type="xs:string" use="required"/>
    <xs:attribute name="naslov" type="xs:string"/>
  </xs:complexType>  
</xs:schema>

--------Zad3---------
XML:
<?xml version="1.0" encoding="utf-8"?>
<vozila xmlns="http://tempuri.org/Zadatak3.xsd">
  <vozilo regOznaka="ZG-1234-AB">
    <osnovniPodaci>
      <marka>Volkswagen</marka>
      <model>Golf</model>
      <boja>Bijela</boja>
    </osnovniPodaci>
    <performanse>
      <maxBrzina>220</maxBrzina>
      <ubrzanje mjernaJedinica="sekunda">7.1</ubrzanje>
      <potrosnja>10.2</potrosnja>
    </performanse>
  </vozilo>
</vozila>

XSD:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="XMLSchema"
    targetNamespace="http://tempuri.org/Zadatak3.xsd"
    elementFormDefault="qualified"
    xmlns="http://tempuri.org/Zadatak3.xsd"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
  <xs:element name="vozila">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="vozilo" maxOccurs="30">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="osnovniPodaci">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="marka" type="xs:string"/>
                    <xs:element name="model" type="xs:string"/>
                    <xs:element name="boja">
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:enumeration value="Bijela"/>
                          <xs:enumeration value="Crvena"/>
                          <xs:enumeration value="Plava"/>
                          <xs:enumeration value="Crvena"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <xs:element name="performanse">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="maxBrzina">
                      <xs:simpleType>
                        <xs:restriction base="xs:int">
                          <xs:minInclusive value="100"/>
                          <xs:maxInclusive value="400"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="ubrzanje">
                      <xs:complexType>
                        <xs:simpleContent>
                          <xs:extension base="xs:float">
                            <xs:attribute name="mjernaJedinica" type="xs:string" fixed="sekunda"/>
                          </xs:extension>
                        </xs:simpleContent>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="potrosnja" type="xs:float" />
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="regOznaka">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:pattern value="[A-Z]{2}-\d{3,4}-[A-Z]{1,2}"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>          
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

----mjerne jedninice
<xs:simpleType name="mjernaJedinica">
<xs:restriction base="xs:string">
<xs:enumeration value="mm"/>

mostito2

$
0
0
----------I5-----------
XSLT:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

    <xsl:template match="/">
      <html>
        <title>Zadatak 4</title>
        <style type="text/css">
          body{text-align:center; font-family:Arial;}
          table, tr, td, th
          {
          border:1px solid #cccccc;
          border-collapse:collapse;
          text-align:center;
          padding:5px;
          }
          th
          {
          text-transform:uppercase;
          background-color:#ffff00;
          }
          .jeftini
          {
          background-color:#999999;
          color:#ffffff;
          }
        </style>
        <body>
          <table>
            <tr>
              <th>naslov</th>
              <th>autor</th>
              <th>cijena</th>
              <th>godina</th>
            </tr>
            <xsl:for-each select="muzika/CD">
              <xsl:sort data-type="number" select="godina"/>
              <xsl:choose>
                <xsl:when test="cijena &lt; 100">
                  <tr class="jeftini">
                    <td>
                      <xsl:value-of select="naslov"/>
                    </td>
                    <td>
                      <xsl:value-of select="autor"/>
                    </td>
                    <td>
                      <xsl:value-of select="cijena"/>
                    </td>
                    <td>
                      <xsl:value-of select="godina"/>
                    </td>
                  </tr>
                </xsl:when>
                <xsl:otherwise>
                  <tr>
                    <td>
                      <xsl:value-of select="naslov"/>
                    </td>
                    <td>
                      <xsl:value-of select="autor"/>
                    </td>
                    <td>
                      <xsl:value-of select="cijena"/>
                    </td>
                    <td>
                      <xsl:value-of select="godina"/>
                    </td>
                  </tr>
                </xsl:otherwise>
              </xsl:choose>
             
            </xsl:for-each>
          </table>
        </body>
      </html>
    </xsl:template>
</xsl:stylesheet>

XML:
<?xml version="1.0" ?>
<?xml-stylesheet type="text/xsl" href="zadatak4.xslt"?>
<muzika>
  <CD>
    <naslov>Balkansko a naše</naslov>
    <autor>Edo Maajka</autor>
    <cijena>99</cijena>
    <godina>2008</godina>
  </CD>
  <CD>
    <naslov>Kompilacija</naslov>
    <autor>Yammat</autor>
    <cijena>180</cijena>
    <godina>2010</godina>
  </CD>
  <CD>
    <naslov>Uskladimo toplomjere</naslov>
    <autor>TBF</autor>
    <cijena>135</cijena>
    <godina>2000</godina>
  </CD>
  <CD>
    <naslov>Nečuveno</naslov>
    <autor>Let3</autor>
    <cijena>80</cijena>
    <godina>1997</godina>
  </CD>
  <CD>
    <naslov>Vrijeme je da se krene</naslov>
    <autor>Majke</autor>
    <cijena>100</cijena>
    <godina>1996</godina>
  </CD>
  <CD>
    <naslov>Second Hand</naslov>
    <autor>Jinx</autor>
    <cijena>99</cijena>
    <godina>1997</godina>
  </CD>
  <CD>
    <naslov>Ravno do dna</naslov>
    <autor>Azra</autor>
    <cijena>200</cijena>
    <godina>1982</godina>
  </CD>
  <CD>
    <naslov>Ruke</naslov>
    <autor>Darko Rundek</autor>
    <cijena>70</cijena>
    <godina>2004</godina>
  </CD>
  <CD>
    <naslov>Čokolada</naslov>
    <autor>Idoli</autor>
    <cijena>110</cijena>
    <godina>1983</godina>
  </CD>
  <CD>
    <naslov>No sikiriki</naslov>
    <autor>Edo Maajka</autor>
    <cijena>120</cijena>
    <godina>2004</godina>
  </CD>
  <CD>
    <naslov>Čovječe ne ljuti se</naslov>
    <autor>Tram 11</autor>
    <cijena>180</cijena>
    <godina>1999</godina>
  </CD>
  <CD>
    <naslov>Radio Fanfara</naslov>
    <autor>Bolesna braća</autor>
    <cijena>110</cijena>
    <godina>2003</godina>
  </CD>
  <CD>
    <naslov>Hello</naslov>
    <autor>Urban </autor>
    <cijena>90</cijena>
    <godina>2009</godina>
  </CD>
</muzika>




----5.1.
----------------XSLT:---------------
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:template match="/">
    <html>
      <body>

        <ul>
          <xsl:for-each select="podaci/kolegij">
            <xsl:sort order="ascending" data-type="text" select="@semestar"/>
            <li>
              <xsl:value-of select="naziv"/>
              <ul>
                <xsl:for-each select="ishodiUcenja/ishod">
                  <li>
                    I<xsl:value-of select="@broj"/> [bodova: <xsl:value-of select="@bodova"/>]
                    <ul>
                      <xsl:for-each select="poglavlje">
                        <xsl:sort order="ascending" data-type="text" select="poglavlje"/>
                        <li>                          
                          <xsl:value-of select="."/>                                                   
                        </li>
                      </xsl:for-each>
                    </ul>
                  </li>
                </xsl:for-each>
              </ul>
            </li>
          </xsl:for-each>
        </ul>

-------------XML:----------------
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="XSLTFile.xslt"?>
<podaci>
  <kolegij oznaka="07038" ects="5" semestar="5" predavanja="30" vjezbe="30">
    <naziv>Pristup podacima iz programskog koda</naziv>
    <ishodiUcenja>
      <ishod broj="1" bodova="15">
        <poglavlje>ADO.NET</poglavlje>
        <poglavlje>Klasa Connection</poglavlje>
        <poglavlje>Klasa Command</poglavlje>
        <poglavlje>Klasa DataReader</poglavlje>
        <poglavlje>Klasa Parameter</poglavlje>
        <poglavlje>BLOB vrijednosti</poglavlje>
        <poglavlje>Transakcije</poglavlje>
      </ishod>
      <ishod broj="2" bodova="10">
        <poglavlje>JDBC</poglavlje>
        <poglavlje>Sučelje Statement</poglavlje>
        <poglavlje>Pozivanjeprocedure s parametrima</poglavlje>
        <poglavlje>Upravljanje transakcijama</poglavlje>
      </ishod>
      <ishod broj="3" bodova="20">
        <poglavlje>DataSet</poglavlje>
        <poglavlje>DataTable</poglavlje>
        <poglavlje>DataColumn</poglavlje>
        <poglavlje>DataRow</poglavlje>
        <poglavlje>DataAdapter</poglavlje>
        <poglavlje>Konflikti prilikom spremanja podataka</poglavlje>
        <poglavlje>DataView</poglavlje>
      </ishod>
      <ishod broj="4" bodova="3">
        <poglavlje>DAAB - DataAccessAplicationBlock</poglavlje>
        <poglavlje>DAAB - SqlHelper</poglavlje>
      </ishod>
      <ishod broj="5" bodova="5">
        <poglavlje>Tipizirani DataSet</poglavlje>
      </ishod>
      <ishod broj="6" bodova="8">
        <poglavlje>Podatkovno povezive kontrole</poglavlje>
        <poglavlje>GridView kontrola</poglavlje>
        <poglavlje>DataSource komponente</poglavlje>
        <poglavlje>Podatkovno-povezivajući izrazi</poglavlje>
        <poglavlje>Validacija unosa</poglavlje>
        <poglavlje>Prilagođeno bojanje</poglavlje>
      </ishod>
      <ishod broj="7" bodova="5">
        <poglavlje>XmlReader</poglavlje>
        <poglavlje>XmlWriter</poglavlje>
        <poglavlje>Oblikovanje XML izlaza</poglavlje>
        <poglavlje>XML DOM</poglavlje>
        <poglavlje>XmlDocument</poglavlje>
        <poglavlje>XmlNodeList</poglavlje>
      </ishod>
      <ishod broj="8" bodova="15">
        <poglavlje>Entity Framework</poglavlje>
        <poglavlje>Database First</poglavlje>
        <poglavlje>Model First</poglavlje>
        <poglavlje>Code First</poglavlje>
        <poglavlje>Zadavanje upita u entitetskoj okolini</poglavlje>
      </ishod>
    </ishodiUcenja>
    <nastavnik email="bojan.fulanovic@algebra.hr">Bojan Fulanović</nastavnik>
    <asistent email="mario.zagar@hotmail.com">Mario Žagar</asistent>
  </kolegij>
  <kolegij oznaka="07019" ects="5" semestar="3" predavanja="30" vjezbe="30">
    <naziv>Standardi u primjeni internetske tehnologije</naziv>
    <ishodiUcenja>
      <ishod broj="1" bodova="25">
        <poglavlje>HTML uvod</poglavlje>
        <poglavlje>Tablice</poglavlje>
        <poglavlje>Obrasci</poglavlje>
      </ishod>
      <ishod broj="2" bodova="15">
        <poglavlje>CSS uvod</poglavlje>
        <poglavlje>CSS napredni</poglavlje>
      </ishod>
      <ishod broj="3" bodova="20">
        <poglavlje>JavaScript</poglavlje>
      </ishod>
      <ishod broj="4" bodova="20">
        <poglavlje>XML i JavaScript</poglavlje>
        <poglavlje>DTD</poglavlje>
        <poglavlje>XMLSchema</poglavlje>
      </ishod>
      <ishod broj="5" bodova="10">
        <poglavlje>XSLT</poglavlje>
        <poglavlje>XPath</poglavlje>
      </ishod>
    </ishodiUcenja>
    <nastavnik email="bojan.fulanovic@algebra.hr">Bojan Fulanović</nastavnik>
    <asistent email="mario.fabijanic@racunarstvo.hr">Mario Fabijanić</asistent>
    <asistent email="a.stojanovic@live.com">Aleksandar Stojanović</asistent>
  </kolegij>
  <kolegij oznaka="07029" ects="5" semestar="4" predavanja="30" vjezbe="30">
    <naziv>Razvoj web aplikacija</naziv>
    <ishodiUcenja>
      <ishod broj="1" bodova="28">
        <poglavlje>Uvod u WebForms</poglavlje>
        <poglavlje>Životni ciklus WebForme</poglavlje>
        <poglavlje>Validacijske kontrole</poglavlje>
        <poglavlje>Mehanizmi čuvanja stanja</poglavlje>
        <poglavlje>Korisničke kontrole</poglavlje>
        <poglavlje>Autentikacija i autorizacija</poglavlje>
      </ishod>
      <ishod broj="2" bodova="15">
        <poglavlje>Master stranice</poglavlje>
        <poglavlje>Teme</poglavlje>
        <poglavlje>Navigacija</poglavlje>
        <poglavlje>Globalizacija i lokalizacija</poglavlje>
        <poglavlje>Optimizacija keširanjem</poglavlje>
        <poglavlje>Upravljanje iznimkama</poglavlje>
      </ishod>
      <ishod broj="3" bodova="15">
        <poglavlje>Rad s podacima iz baze podataka</poglavlje>
        <poglavlje>Podatkovno povezive kontrole</poglavlje>
      </ishod>
      <ishod broj="4" bodova="25">
        <poglavlje>MVC</poglavlje>
        <poglavlje>MVC kontroleri</poglavlje>
        <poglavlje>Razor pogledi</poglavlje>
        <poglavlje>Modeli</poglavlje>
        <poglavlje>Validacija</poglavlje>
      </ishod>
    </ishodiUcenja>
    <nastavnik email="bojan.fulanovic@algebra.hr">Bojan Fulanović</nastavnik>
    <asistent email="danijel.kucak@algebra.hr">Danijel Kučak</asistent>
  </kolegij>

</podaci>


      </body>
    </html>
  </xsl:template>
</xsl:stylesheet>



----5.2.
-----------------XSLT:------------------
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">


    <xsl:template match="/">

      <html>
        <body>

          <ul>
            <xsl:for-each select="podaci/kolegij">
              <xsl:sort order="descending" data-type="text" select="@semestar"/>              
              <li style="list-style-type:none">
                <h3>
                  <xsl:value-of select="naziv"/>
                </h3>
                <xsl:for-each select="ishodiUcenja/ishod">
                  <li style="list-style-type:none">
                    I<xsl:value-of select="@broj"/> - [<xsl:value-of select="count(poglavlje)"/> poglavlja, bodova: <xsl:value-of select="@bodova"/>]
                  </li>
                </xsl:for-each>
                <li style="list-style-type:none">
                  Ukupno ishoda:<xsl:value-of select="count(ishodiUcenja/ishod)"/>
                </li>
                <li style="list-style-type:none">
                  Ukupno bodova: <xsl:value-of select="sum(ishodiUcenja/ishod/@bodova)"/>
                </li>
              </li>
            </xsl:for-each>
          </ul>
          
        </body>
      </html>
      
    </xsl:template>
</xsl:stylesheet>

------------------XML:--------------------------
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="XSLTFile2.xslt"?>
<podaci>
  <kolegij oznaka="07038" ects="5" semestar="5" predavanja="30" vjezbe="30">
    <naziv>Pristup podacima iz programskog koda</naziv>
    <ishodiUcenja>
      <ishod broj="1" bodova="30">
        <poglavlje>ADO.NET</poglavlje>
        <poglavlje>Klasa Connection</poglavlje>
        <poglavlje>Klasa Command</poglavlje>
        <poglavlje>Klasa DataReader</poglavlje>
        <poglavlje>Klasa Parameter</poglavlje>
        <poglavlje>BLOB vrijednosti</poglavlje>
        <poglavlje>Transakcije</poglavlje>
      </ishod>
      <ishod broj="2" bodova="25">
        <poglavlje>JDBC</poglavlje>
        <poglavlje>Sučelje Statement</poglavlje>
        <poglavlje>Pozivanjeprocedure s parametrima</poglavlje>
        <poglavlje>Upravljanje transakcijama</poglavlje>
      </ishod>
      <ishod broj="3" bodova="30">
        <poglavlje>DataSet</poglavlje>
        <poglavlje>DataTable</poglavlje>
        <poglavlje>DataColumn</poglavlje>
        <poglavlje>DataRow</poglavlje>
        <poglavlje>DataAdapter</poglavlje>
        <poglavlje>Konflikti prilikom spremanja podataka</poglavlje>
        <poglavlje>DataView</poglavlje>
      </ishod>
    </ishodiUcenja>
    <nastavnik email="bojan.fulanovic@algebra.hr">Bojan Fulanović</nastavnik>
    <asistent email="mario.zagar@hotmail.com">Mario Žagar</asistent>
  </kolegij>
  <kolegij oznaka="07019" ects="5" semestar="3" predavanja="30" vjezbe="30">
    <naziv>Standardi u primjeni internetske tehnologije</naziv>
    <ishodiUcenja>
      <ishod broj="1" bodova="25">
        <poglavlje>HTML uvod</poglavlje>
        <poglavlje>Tablice</poglavlje>
        <poglavlje>Obrasci</poglavlje>
      </ishod>
      <ishod broj="2" bodova="15">
        <poglavlje>CSS uvod</poglavlje>
        <poglavlje>CSS napredni</poglavlje>
      </ishod>
      <ishod broj="3" bodova="20">
        <poglavlje>JavaScript</poglavlje>
      </ishod>
      <ishod broj="4" bodova="20">
        <poglavlje>XML i JavaScript</poglavlje>
        <poglavlje>DTD</poglavlje>
        <poglavlje>XMLSchema</poglavlje>
      </ishod>
      <ishod broj="5" bodova="10">
        <poglavlje>XSLT</poglavlje>
        <poglavlje>XPath</poglavlje>
      </ishod>
    </ishodiUcenja>
    <nastavnik email="bojan.fulanovic@algebra.hr">Bojan Fulanović</nastavnik>
    <asistent email="mario.fabijanic@racunarstvo.hr">Mario Fabijanić</asistent>
    <asistent email="a.stojanovic@live.com">Aleksandar Stojanović</asistent>
  </kolegij>
  <kolegij oznaka="07029" ects="5" semestar="4" predavanja="30" vjezbe="30">
    <naziv>Razvoj web aplikacija</naziv>
    <ishodiUcenja>
      <ishod broj="1" bodova="28">
        <poglavlje>Uvod u WebForms</poglavlje>
        <poglavlje>Životni ciklus WebForme</poglavlje>
        <poglavlje>Validacijske kontrole</poglavlje>
        <poglavlje>Mehanizmi čuvanja stanja</poglavlje>
        <poglavlje>Korisničke kontrole</poglavlje>
        <poglavlje>Autentikacija i autorizacija</poglavlje>
      </ishod>
      <ishod broj="2" bodova="15">
        <poglavlje>Master stranice</poglavlje>
        <poglavlje>Teme</poglavlje>
        <poglavlje>Navigacija</poglavlje>
        <poglavlje>Globalizacija i lokalizacija</poglavlje>
        <poglavlje>Optimizacija keširanjem</poglavlje>
        <poglavlje>Upravljanje iznimkama</poglavlje>
      </ishod>
      <ishod broj="3" bodova="15">
        <poglavlje>Rad s podacima iz baze podataka</poglavlje>
        <poglavlje>Podatkovno povezive kontrole</poglavlje>
      </ishod>
      <ishod broj="4" bodova="25">
        <poglavlje>MVC</poglavlje>
        <poglavlje>MVC kontroleri</poglavlje>
        <poglavlje>Razor pogledi</poglavlje>
        <poglavlje>Modeli</poglavlje>
        <poglavlje>Validacija</poglavlje>
      </ishod>
    </ishodiUcenja>
    <nastavnik email="bojan.fulanovic@algebra.hr">Bojan Fulanović</nastavnik>
    <asistent email="danijel.kucak@algebra.hr">Danijel Kučak</asistent>
  </kolegij>

</podaci>

Javascript to call MsBuild?


TestWindowPackage.Initialize fails when running devenv from command line

$
0
0

As part of our build process in TFS 2013, we invoke devenv (instead of msbuild) for each of the solutions in our application.  Although the build completes and the output packages are created successfully, TFS reports an error on each build related to TestWindowPackage (see the entry from ActivityLog.xml below).  Here are the conditions that apply:

  1. The error only appears when running the build from the command line.  Opening the Visual Studio IDE with the /log switch and loading the project does not generate the error in ActivityLog.xml.

  2. Building from the command line using the /SafeMode switch does not generate the error (we are currently using this as a workaround).

  3. Building from the command line with the IDE already open does not generate the error, even is /SafeMode is not used.

  4. The error is generated on developer machines as well as the build server.

  5. We are using VS 2015 on all machines; however, the solutions were upgraded from VS 2010.

  6. The error is not generated unless a solution is loaded.  (This is expected, since the TestWindowPackage is not loaded until a solution is loaded).

Here are the entries from ActivityLog.xml:

<entry>
    <record>417</record>
    <time>2016/02/22 15:31:47.807</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Entering function CVsPackageInfo::HrInstantiatePackage</description>
    <guid>{BFC24BF4-B994-4757-BCDC-1D5D2768BF29}</guid>
  </entry>
  <entry>
    <record>418</record>
    <time>2016/02/22 15:31:47.807</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Begin package load [TestWindowPackage]</description>
    <guid>{BFC24BF4-B994-4757-BCDC-1D5D2768BF29}</guid>
  </entry>
  <entry>
    <record>419</record>
    <time>2016/02/22 15:31:47.856</time>
    <type>Error</type>
    <source>TestWindowPackage</source>
    <description>TestWindowPackage.Initialize failed with exception: &#x000D;&#x000A;&#x000D;&#x000A;System.ArgumentNullException: Value cannot be null.&#x000D;&#x000A;Parameter name: application&#x000D;&#x000A;  at System.Windows.CompositionExtension.RegisterCompositionService(Application application, ICompositionService compositionService)&#x000D;&#x000A;   at Microsoft.VisualStudio.TestWindow.VsHost.TestWindowPackage.InitializeContainer()&#x000D;&#x000A;  at Microsoft.VisualStudio.TestWindow.VsHost.TestWindowPackage.Initialize() &#x000D;&#x000A;&#x000D;&#x000A;PackageContainer loaded: True &#x000D;&#x000A;</description>
  </entry>
  <entry>
    <record>420</record>
    <time>2016/02/22 15:31:47.858</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>SetSite failed for package [TestWindowPackage][Value cannot be null.&#x000D;&#x000A;Parameter name: application]:{   at System.Windows.CompositionExtension.RegisterCompositionService(Application application, ICompositionService compositionService)&#x000D;&#x000A;   at Microsoft.VisualStudio.TestWindow.VsHost.TestWindowPackage.InitializeContainer()&#x000D;&#x000A;   at Microsoft.VisualStudio.TestWindow.VsHost.TestWindowPackage.Initialize()&#x000D;&#x000A;  at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)}</description>
    <guid>{BFC24BF4-B994-4757-BCDC-1D5D2768BF29}</guid>
    <hr>80004003 - E_POINTER</hr>
    <errorinfo>Value cannot be null.
Parameter name: application</errorinfo>
  </entry>
  <entry>
    <record>421</record>
    <time>2016/02/22 15:31:47.858</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>End package load [TestWindowPackage]</description>
    <guid>{BFC24BF4-B994-4757-BCDC-1D5D2768BF29}</guid>
    <hr>80004003 - E_POINTER</hr>
    <errorinfo>Value cannot be null.
Parameter name: application</errorinfo>
  </entry>


squincy

Unable to Open AX form using Open Designer

$
0
0

Hi Guys,

 I am a AX Developer. Currently we are into AX 7 development. All AX objects are modified in VS2015. I Added AX forms from Application explorer into Project [Solution Explorer]. When I open the form I am getting two types of errors:

1. Value cannot be null. Parameters name: path 1

2. Object reference not set to an instance of an object.

In my team others can able to open the form.

What is wrong, can anybody help me on this.

I am getting this error when I try to build C++ Windows Forms Application

$
0
0

So, I am using Microsoft Visual C++ 2010 Express, I create Visual C++ Windows Forms Application and when I try to build it I always get this error. Could someone explain how to fix it? Here is the error:

1>------ Build started: Project: Test, Configuration: Debug Win32 ------ 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MetaGen.targets(91,5): error MSB4062: The "MIBPreProcessDependencyGraph" task could not be loaded from the assembly Microsoft.Build.CppTasks.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Thanks.

assembly dependent on C# library will not update dll in publish.

$
0
0

Environment: Visual Studio 2013 Update 5

Hello, 

I have a .cs file within class library that is referenced by a web application. I build both the class library and the application, and it produces a new .dll for the class library; however, the contents of the dll are not updated. I use  JetBrains DotPeek to decompile the dll to verify that the new version has not updated with the latest changes to the .cs file within the class library. 


I can confirm the following:
1)The class library is in the references list for the applicaiton

2)The build action of the .cs file is "compile" & output directory is "Do Not Copy"

3) I am building using both debut and release configurations. 

4) I have built, rebuilt and cleaned. 

Thanks for you help, this is driving me up the wall and consuming so much time. 

Need to delete my "bin" directory to buid my application

$
0
0

Hi,

Since an update (security?) of "Framework .NET" last week, I cannot build my application with Visual Studio any more.

Now, I must leave Visual Studio, delete directory "bin" in my projet start again Visual Studio to finally be able to compile my application.

I find this situation very uncomfortable!

Moreover, I also had problems with the breakpoints which I am not able any more to activated and disable...

Would you have a solution? Does there exist a correction for Visual Studio ?

Thank you,

Vincent

VC++ Build Tools release?

$
0
0

Hi there,

is there a release date for the VC++ 2015 Build Tools or are they coming with VS 2015 Update 2?

Has MS said whether they are going to continuously supppliy update for these build tool with each new compiler version?

Sincerely DrNochi

Building with Message Compiler (MC.exe)

$
0
0

Hi,

I have a message compile in my build process which using a prebuild event to build it

E.g.

<PreBuildEvent><Command>cd "$(OutDir)"

set myTemp=$(OutDir)
set myDrive=%myTemp:~0,2%
%myDrive%

	  mc "$(ProjectDir)\a.mc"</Command></PreBuildEvent>

Looking at documentation for MSBUILD here you can build your own. I looked at the example for the Message Compiler here and created my own file below.

<Project
	DefaultTargets="Build"
	ToolsVersion="14.0"
	xmlns="http://schemas.microsoft.com/developer/msbuild/2003"><ItemGroup><Filter Include="Message Source Files"><Extensions>mc;</Extensions><UniqueIdentifier>{B796B525-44D3-4260-8C76-705DBADA1043}</UniqueIdentifier></Filter></ItemGroup><ItemGroup><MessageCompile Include="a.mc"><GenerateBaselineResource>true</GenerateBaselineResource></MessageCompile></ItemGroup><Target Name="Build"><DontKnowWhatGoesHere Sources="@(MessageCompile)"/></Target></Project>

However I have no idea what to put in the DontKnowWhatGoesHere task. For c# it is Csc, is there an equivalent for MC.exe.

Thanks






MSBuild.exe for compiled code (VB6).

$
0
0

Hi

I have a requirement of using MSbuild.exe for building the vb6 code and moving the code from build server to webservers.

I am struggling to figure out how will be the build.proj file will look like in this case? 

My build.proj file looks like this

<?xml version="1.0" encoding="utf-8" ?><Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ><PropertyGroup><TargetFrameworkVersion>v1.0</TargetFrameworkVersion></PropertyGroup><Target Name="DeployDev"><!-- Delete target folders on web --><Exec Command="RMDIR /S /Q \\machineName\C$\Projects\SERVERS\DEV\WATCH"/><!-- Xcopy files to target ABC web folders --><Exec Command="xcopy /Q /E /I /Y \\MachineName\C$\Projects\TEST_PROJECT\TestApplicationVB6 \machineName\C$\Projects\SERVERS\DEV\WATCH"/></Target><Target Name="DeployUAT"><!-- Delete target folders on web --><Exec Command="RMDIR /S /Q \\machineName\C$\Projects\SERVERS\UAT\WATCH"/><!-- Xcopy files to target ABC web folders --><Exec Command="xcopy /Q /E /I /Y \\machineName\C$\Projects\TEST_PROJECT\TestApplicationVB6 \\machineName\C$\Projects\SERVERS\UAT\WATCH"/></Target></Project>

Any help or suggestion is appreciated. 


NA

DynamicEnumProperty Based on ItemGroup?

$
0
0

Hello.

     I've made a custom MSBuild project that build ESP Wi-fi Mcu (soon arduino and Atmel). Now I need a Release and Version Selection. The Structure Folder look like this:

+ESPressif+AT+0.5+0.6+Non-Os+1.5+1.5.2+RTOS+1.2.2+1.3.0

I Resolve Release and Version retreiver by

<ItemGroup><ReleaseFolder Include="$([System.IO.Directory]::GetDirectories(&quot;$(VisualStudioDir)\XtensaTools\ESPressif\&quot;))" /><ReleaseName Include="@(ReleaseFolder->'$([System.IO.Path]::GetFileName('%(ReleaseFolder.Identity)'))')" /></ItemGroup><ItemGroup><VersionFolder Include="$([System.IO.Directory]::GetDirectories(&quot;$(VisualStudioDir)\XtensaTools\ESPressif\$(ReleaseSel)&quot;))" /><VersionName Include="@(VersionFolder->'$([System.IO.Path]::GetFileName('%(VersionFolder.Identity)'))')" /></ItemGroup>

Now does it's possible to link ReleaseName and VersionName ItempGroup to a dynamicenumproperty?

Or I must necessary pass by a custom dynamicenumproperty linked into a DLL file?

I've found something about EnumProvider="ProjectExpression" but. I Can't use @(ReleaseName) for value. I've also try to convert @(ReleaseName) to $() PropertyGroup String... Something missing. This code was taken from microsoft and it's about Platform version selection and Minimal Platform version.

<DynamicEnumProperty Name="SelectRelease" DisplayName="Select a release type" Category="General" Description="Le type d'élément détermine l'outil de génération ou le fichier." EnumProvider="ProjectExpression"><DynamicEnumProperty.ProviderSettings><NameValuePair Name="Include" Value="Test1;Test2;Test3" /></DynamicEnumProperty.ProviderSettings></DynamicEnumProperty>

  


ISPROJ file built with MSBuild does not include all necessary dependencies in the MSI.

$
0
0

Greetings,

I am using the InstallShiled LE Spring 2012 version.

I have several projects that are using some Third party controls. In order to use these controls we add some file references for a set of assemblies registered in the GAC, these references are added to the Main Exe project for the solution. These are registered as part of an SDK developer package.

When I build the Solution in Visual Studio 2012, the installer includes these registered files and the installed application will work without any issues. However, if I build the Solution through the MSBuild command line these third part DLLs are not present in the MSI and that causes the application to fail when installed with an installer created by this process.


It basically looks like builds within VS2012 run the .Net Dependency scan, and the others do not.

The issue is that the compiled MSI is DIFFERENT when built via the command line than it is when built via Visual Studio. Since the MSI output by Visual Studio is correct and has all of the necessary referenced DLLs embedded within the installer, I would have to assume the issue is with the way the MSBuild Command line builds the isproj files.

The project builds in both formats without error

The issue is not a failed build, but the fact that the output MSI package from a command line or TFS build does not include all of the necessary files for the application to run once installed. There is some major difference in how the isproj files are being built when using a command line build versus using the Visual Studio IDE to build.

Since I cannot find any method of increasing the verbosity level of an isproj build log in VS IDE, I cannot compare it against the more verbose command line build. All I can tell is that when it is building the MSI, the IDE successfully scans and detects the needed dependencies, but the command line builds don't detect all of the necessary dependencies from the primary output.

ItemGroup DynamicEnumProperty - String Conversion Problem

$
0
0

Hello.

     I've made a custom MSBuild project that build ESP Wi-fi Mcu (soon arduino and Atmel). Now I need a Release and Version Selection. The Structure Folder look like this:

+ESPressif+AT+0.5+0.6+Non-Os+1.5+1.5.2+RTOS+1.2.2+1.3.0

I Resolve Release and Version retreiver by: (Working well inside a targets)

<ItemGroup><ReleaseFolder Include="$([System.IO.Directory]::GetDirectories(&quot;$(VisualStudioDir)\XtensaTools\ESPressif\&quot;))" /><ReleaseName Include="@(ReleaseFolder->'$([System.IO.Path]::GetFileName('%(ReleaseFolder.Identity)'))')" /><VersionFolder Include="$([System.IO.Directory]::GetDirectories(&quot;$(VisualStudioDir)\XtensaTools\ESPressif\$(ReleaseSel)&quot;))" /><VersionName Include="@(VersionFolder->'$([System.IO.Path]::GetFileName('%(VersionFolder.Identity)'))')" /></ItemGroup>

After I link ReleaseName inside DynamicEnumProperty with a EnumProvider="ProjectExpression". I Also set ProviderSettings to @(ReleaseFolder)

<DynamicEnumProperty Name="SelectRelease" DisplayName="Select a release type" Category="General" EnumProvider="ProjectExpression"><DynamicEnumProperty.ProviderSettings><NameValuePair Name="Include" Value="@(ReleaseFolder)" /></DynamicEnumProperty.ProviderSettings></DynamicEnumProperty>

Now because I'm now outside a targets, I can use only @(ReleaseFolder) who gave me the entire path.

E:\Home\Visual Studio 2015\XtensaTools\Espressif\AT

E:\Home\Visual Studio 2015\XtensaTools\Espressif\RTOS

E:\Home\Visual Studio 2015\XtensaTools\Espressif\NON-OS

When I use @(ReleaseName), I get an error because @(ReleaseName) contain 3 times %(ReleaseFolder.Indentity).

I've also try to do replace string to remove path but i got ("system.string[]".Replace... can't be evaluate) --looks like string array vs string problem.

Look like that item name %() was not support outside targets. Where is my problem?

  




Dnx/ Dvm install

$
0
0

Hi Mate,

We are using TeamCity to build project to our test site but we are having error in TeamCity that DNX should be install. We try installing dnvm /dnx in the teamcity server using a command but we are having trust relationship for the SSL/TLS secure channel.

Command we used: powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}"

We also allow the IP in the firewall and there is no firewall blocking happening while connecting to the link but we are still having the same issue.

I dont know if I write this on the correct team but if not let me know. Any help are much appreciated. Thanks

Viewing all 2763 articles
Browse latest View live


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